Hi! You can't. Only one attribute with the same name in the same namespace allowed for well-formed documents. You should change document format or load it in another way(load as string and parse by yourself). http://www.xmlnews.org/docs/xml-basics.html Read section 4. >From XML spec: Well-formedness constraint: Unique Att Spec An attribute name MUST NOT appear more than once in the same start-tag or empty-element tag.
2011/5/7 Debasree Das <[email protected]>: > Hi All, > Please help me to read this xml..in this xml there are more than one tags > for agriculture, education etc..i need a generalised function so that i can > read any number of repeated attributes. Here 'matches' is the total number > of facets like (agriculture,education,energy,finance,health,industry). > <marker id="101" name="India" tag="IN" lat="23" lng="75" matches="11" > desc="agriculture, education:7.7%, finance:10.8, industry:64.84 " > level="country" > qtr="Q2" yr="2011" tooltip="IN tooltip" curr="INR" labelPos="left" > sel="true" > agriculture="1002" agriculture="200" agriculture="60" education="7.7" > education="2" education="3" energy="300" energy="50" energy="150" > finance="10.8" health="" industry="64.84"/> > <marker id="102" name="Bangladesh" tag=" BNG" lat="24.111111" > lng="90.212111" matches="8" > desc="Place : BNG, Currency: Taka (BDT), energy:1500, finance: 4.8" > level="country" > qtr="Q2" yr="2011" tooltip="DHK tooltip" curr="BDT" labelPos="left" > sel="true" > agriculture="" education="" energy="1500" energy="300" energy="450" > energy="4000" finance="4.8" finance="5.5" finance="3" finance="7" health="" > industry=""/> > > Thanks in advance > > > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > -- Oleg Galaburda http://blog.actualwave.com/ http://jsinterface.googlecode.com/ http://guibuilder.org/ -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

