Jump to content
Software FX Community

DOM and LoadFromString

User (Legacy)

Recommended Posts


Does anyone know why I have to explicitly add

<?xml version='1.0' encoding='ISO-8859-1'?>

to the front of any string i use in the LoadFromString method of XML


if I have ADO persisted to DOM like:

rsXML.Save oDOM, 1

I can only get it into provider two ways:

1. Save DOM to disk and use LoadURL( diskfile ) ---expensive I/O

2. LoadFromString( "<?xml version='1.0' encoding='ISO-8859-1'?>" &

oDOM.xml )

not adding the declaration causes failure in load (just oDOM.xml fails.)

is this because the in memory declaration of DOM is UTF-8 or some similar or

just not present when DOM.xml called?

What is LoadFromString looking for that DOM does not supply via oDOM.xml.

The above solution works for me, but any enlightenment appreciated.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...