realbasic-nug
[Top] [All Lists]

Re: Is there a way to get xml pretty printed in RB?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Is there a way to get xml pretty printed in RB?
From: Kevin Windham <kevo at gatorgraphics dot com>
Date: Fri, 28 Jul 2006 13:41:32 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <8FA3DB02-4C61-43BA-8C20-7B9654FB98D7 at gatorgraphics dot com> <44CA5069 dot 80903 at digi-net dot com>

On Jul 28, 2006, at 12:59 PM, Ken Jordan wrote:

Kevin Windham wrote:

I have a class that outputs my prefs file as basic xml using the xmldocument class. The output is kind of hard to read though since there are no returns anywhere. Is there a function or process I can use in RB to pretty print the xml without doing it by hand with my own code?

Thanks,
Kevin

Look here...

http://support.realsoftware.com/listarchives/realbasic-nug/2006-05/ msg00633.html

Ken

That looks like what I needed, but when i try to .Transform I get an XmlException. The really frustrating part is that I can't seem to catch the exception. Without break on exceptions turned on in the IDE, my program just quits with no errors. When I put in an exception block or a try catch block my program just quits. The only way I can tell there is an exception is from the break on exceptions and the highlighting of the offending line. I can't get at the error number or error message so I have no idea how to fix it.

I am going to have to use one of the other solutions I suppose.

Kevin
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>