You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by ne...@aikia.in on 2007/03/07 20:36:56 UTC

xml generation for SOLR

hai,

Yes the Xml formats is understood but there is an issue to generate these
xmls
from a data source. These XML feild tags doesnot contain the same start
tags and end tags.

like <field name="cat">software</field>

and standerd xml writers have xml generated as the same start and end tags.

in SOLR xml
start tag = <field name="cat">
end tag =  </field>

can you adivise anything on this please.

regards,
aditya


Re: xml generation for SOLR

Posted by Chris Hostetter <ho...@fucit.org>.
: like <field name="cat">software</field>
:
: and standerd xml writers have xml generated as the same start and end tags.
:
: in SOLR xml
: start tag = <field name="cat">
: end tag =  </field>

that "tag" is the same, the "tag" is "field" ... the field "tag" has a
mandatory "attribute" which is "name"

While it's certianly true that some people discourage use of XML
"attributes" when designing XML schema,s it doesn't change the fact that
having "attributes" is a very legal part of XML.

a quick google search for "xml attribute" turns up quite a few pages that
you may find useful, here's just a few for starters...

http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/overview/1_xml.html
http://www.xmlnews.org/docs/xml-basics.html#attributes
http://www.expertrating.com/courseware/XMLCourse/XML-Elements-Attributes-4.asp


-Hoss