Jump to content

DOM -> Text


Recommended Posts

Let's say I have a basic XML file like "<Person> <name> Charles </name> </Person>". I can easily convert this to DOM using some flavor of parse. However, I later need to serialize the DOM I created to send it over the wire. Is there a way to convert from DOM to String?"<Person> <name> Charles </name> </Person>" -> DOM // I can do thisDOM -> "<Person> <name> Charles </name> </Person>" // How do I do this?--Charles

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...