Opened 21 years ago
Last modified 21 years ago
#235 closed defect (wontfix)
[MiniXML] Easier way to deal with multiple tags in the root of an XML doc
Reported by: | Daniel Morissette | Owned by: | warmerdam |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | lacroix@… |
Description
Daniel Morissette wrote: > 2- With a XML doc like this: > <?xml version="1.0" ?> > <MyTag> > ... > </MyTag> > ... the root of the parsed document points to the <?xml> tag and you > have to scan all the siblings (whatever they're called in MiniXML) in > order to find the one that contains the <MyTag>. > > Is there a way to fetch <MyTag> directly? If not then what would you > think of adding a function that simplifies fetching <MyTag>? I don't > know MiniXML enough to make a good suggestion, but my first reaction was > to think that the parse function should return a ref to the virtual root > of the document, and hence looking for "/MyTag" should work out of the > box. Frank Warmerdam wrote: This is a little more hairy. I would need to think about it a bit. I use the MiniXML support in a few places so I want to be careful I don't break them.
Note:
See TracTickets
for help on using tickets.