On Thursday 16 May 2002 7:31 pm, Michael A Nachbaur wrote: > > yuck indeed. For id() to work you need the attribute defined as an ID > > type in the local subset: > > I actually tracked the problem down. It was working, but as I use > XML::XPath to modify, then save the document, the XML prolog and DOCTYPE > definitions were getting lost. That was wreaking all sorts of havoc, > with not having the DTD associated with the document, and with character > set problems. > > Is there any better way to output XML from an XPath object, other than > doing: > > XML::XPath::XMLParser::as_string($node);
Nope. > This only returns XML from the root-element down, and I lose my PIs, > DOCTYPE and Prolog. I could string-munge the original document, and > just prepend that to the XML returned from as_string(), but that sounds > very crufty. Sucks, don't it? Patches welcome. Matt. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
