I'm trying to write a regular expression to escape the < charactar
within an XML file. I only want to escape the character when its the
value of a node. Ex:
"<xmlnode>one < two</xmlnode>"
[...]
This seems to scream out to me to not use a regex, but one of
the XML parser modules. XML::Simple is probably a good place
to start.
XML::Simple is probably a bad place to start for not wellformed
XML data, and most probably the OP is just about to fix his
raw data so that it becomes parseable.
The only module I know of that may be worth a look is
XML::Liberal, which applies some fixups on its own, but I haven't
used this one at all.
Re: Putting a "<" in an attribute value (was about CDATA sections) ... > are ambiguous (section 2.4 essentially says numeric character... is a lawyer :-) XML has inherited these definitions with very few ... Once validity is established, an application will receive ...<!DOCTYPE header [ ... (comp.text.xml)
Re: Future of LISP. Alternative to XML. Web 3.0? ... I didn't realize it meant literally the cr character within the ... instead of XML representation for queries and responses. ... using s-expressions instead of XML, nobody is going to use it, ... Do *any* of those LISP projects have a server I ... (comp.lang.lisp)
RE: System.ArgumentException: Illegal characters in path ... But I don't use any xml string at all in my web ... It is a default data type string and I wonder it ... cannot accept latin character since string accepts all utf-8 characters. ...Microsoft XML 3.0 SP1 ... (microsoft.public.dotnet.framework.webservices)
Re: Suppressing character entity transformation ... I was gently chastizing Pavel for a minor stylistic point. ... When XSLT reads in a document, character references and entity references are expanded; when it writes the document back out as either XML or HTML, it should re-create character references where they're necessary. ... You really want to fix that, along the lines he illustrated (issuing actual elements rather than text that looks like tags) before you do anything else. ... (comp.text.xml)
Importing XML through .NET Web Service with VBA ... I need some guidance regarding importing XML data through .NET Web ... I currently have a spreadsheet that utilizes external ... My solution is to setup a .NET Web Service that makes the calls ... (microsoft.public.excel.programming)