DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 30 Jul 2007 14:40:35 -0000,    posted on: microsoft.public.dotnet.vjsharp        back       

Thread Index
  1    dcrackel


J# XML output to screen   
Greetings.

I'm having some trouble with what seems to be a simple issue.

I would like to write to a XML document to the System.out however, my
attempts are thwarted.


		String exampleNamespaceURI = "http://example.com/2006/ns1";
		XmlDocument xmlDocument = new XmlDocument();
		XmlElement root = xmlDocument.CreateElement("", "root",
exampleNamespaceURI);
		XmlElement test = xmlDocument.CreateElement("", "test",
exampleNamespaceURI);

		test.AppendChild(xmlDocument.CreateTextNode("test text"));
		root.AppendChild(test);
		xmlDocument.AppendChild(root);
		xmlDocument.Save("test.xml");

Rather than saving it to a file, I would like to write it to the
screen.

How could I that?


System.out.println("test:" + xmlDocument.toString());  = no good

Trying to use a Stream only yields can't initaite an absract class.

Thank you for the help
Date:Mon, 30 Jul 2007 14:40:35 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us