File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes DOM to string in J# .NET Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "DOM to string in J# .NET" Watch "DOM to string in J# .NET" New topic
Author

DOM to string in J# .NET

Mike Cronin
Greenhorn

Joined: Apr 17, 2002
Posts: 25
Hi all,

Let me first appologize if I have posted this question in the wrong forum.

I am working on a project in Visual Studio .NET where I need to convert DOM contents to a string. I have searched by butt off with no success.

Is there anyone out there who can give me a hand with this?

My greatest thanks in advance!

Best Regards,

Mike Cronin
Data On Call Programmer

[ July 21, 2004: Message edited by: Mike Cronin ]
[ July 22, 2004: Message edited by: Mike Cronin ]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
The forum is as correct as it can get under this domain name... However, since you're asking about a language that few Java developers use (J#) you might have better luck asking the question at .NET forums like GotDotNet or Microsoft's own Visual J# newsgroup.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Mike Cronin
Greenhorn

Joined: Apr 17, 2002
Posts: 25
Hi Lasse,

I used XmlDocument.get_OuterXml() to copy the contents of a DOM object to a string variable.

Thanks so much for your quick response.

Best Regards,

Mike Cronin
Data On Call Programmer

[ July 22, 2004: Message edited by: Mike Cronin ]
[ July 22, 2004: Message edited by: Mike Cronin ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DOM to string in J# .NET