Skip to Content

Converting non-XML documents to XML

There are many instances when we have the source as one or many Non-XML document, such as “.txt” files. Here is a simple Content-Loader XML which can be used to load any number of Non-XML documents into it and display it as a single XML document.

Lets say my Non-XML source documents are in the following path,

It is not mandatory that both NonXMLSource and ContentLoaderXML exist in the same path. You can always give the full path of the source file in the xml document to reference it, as i have shown above.

Be the first to leave a comment
You must be Logged on to comment or reply to a post.