Project

Profile

Help

input document not well formed

Added by Anonymous over 15 years ago

Legacy ID: #7024736 Legacy Poster: scott (swr750)

is there any way to run a query if the input document is not well formed? it runs just fine if i add a <root> </root> tag to the document. I can probably add the tags in the script before invoking saxon, but i was hoping there is a was to do it in the query.


Replies (1)

RE: input document not well formed - Added by Anonymous over 15 years ago

Legacy ID: #7024893 Legacy Poster: Michael Kay (mhkay)

If you can make the document well-formed by adding a wrapper element, then you can create a skeleton document that incorporates your original document as an external entity: <!DOCTYPE wrapper [ <!ENTITY e SYSTEM "original.xml"> ]> <wrapper>&e;</wrapper> Then just use the wrapper document as the input to your query.

    (1-1/1)

    Please register to reply