xml generation for SOLR

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

xml generation for SOLR

netaji.k
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

Reply | Threaded
Open this post in threaded view
|

Re: xml generation for SOLR

Chris Hostetter-3
: 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