Case-insensitive XML Parsing
whisper at oz.net
Mon Aug 5 21:35:25 CEST 2002
If your tag names are inconsistant, then xml probably won't help.
OTOH, if they differ only by case, then do a prepass on the data to
normalize the case of the tags.
Seattle, WA USA
> -----Original Message-----
> From: python-list-admin at python.org
> [mailto:python-list-admin at python.org]On Behalf Of C. R. Sandeep
> Sent: Monday, August 05, 2002 4:53
> To: python-list at python.org
> Subject: Case-insensitive XML Parsing
> I am using the xml.dom.minidom module to do some XML parsing. Is
> there any way I can set an option to do case-insensitive parsing? I
> have a lot of files with inconsistent tag names and I need to parse
> them in Python. I checked the Python Global Module Reference but
> couldn't find any relevant information. Also, I do not want to use
> xmllib at this time (which, I think, supports case-insensitive parsing
> - not sure of this though).
> Thanks in advance,
More information about the Python-list