Case-insensitive XML Parsing

David LeBlanc whisper at oz.net
Mon Aug 5 15:35:25 EDT 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.

David LeBlanc
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
>
>
> Hi,
>
>      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,
>
> Sandeep.
> --
> http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list