g list"
Sent: Monday, January 09, 2006 2:41 PM
Subject: Re: [Flashcoders] adding whitespace back into xml
Hi there Jobe,
Try this. It works great for me.
class util.XMLFormat {
public static function formatXML(p_xml:XMLNode, p_tab:String):String {
p_tab = (p_tab == undefined) ? "\t&
&") != -1) ? "" : p_str;
}
}
Cheers,
Dimitrios
- Original Message -
From: "Jobe Makar" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list"
Sent: Monday, January 09, 2006 9:21 PM
Subject: Re: [Flashcoders] adding whitespace back into xml
H
onday, January 09, 2006 2:26 PM
Subject: Re: [Flashcoders] adding whitespace back into xml
I came across this on the web a while back:
//original author http://www.wolfenhex.com
public static function format(node, tab):String {
if (tab == undefined) tab = "";
if(node.nodeName ==
Jode,
Thanks, but modifying the source XML is not an option in this case.
did you try loading the XML as plain text? Flash doesn't type-check
file, so you could use a loadVars object and the XML would be plain
text, all yours to search-and-replace as one big string :-)
there was a discus
ite something to do it.
>
> Jobe Makar
> http://www.electrotank.com
> http://www.electro-server.com
> phone: 919-609-0408
> mobile: 919-610-5754
> fax: 919-341-8104
> ----- Original Message -----
> From: "Sander" <[EMAIL PROTECTED]>
> To: "Flashcoders
ectro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-341-8104
- Original Message -
From: "Sander" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list"
Sent: Monday, January 09, 2006 2:14 PM
Subject: Re: [Flashcoders] adding whitespace back into xml
Why d
Why don't you just include html tags in your XML, so it becomes
XHTML? You just take a couple of nodes and use them to set the
htmlText property of a textfield?
Bullet 1
Bullet
Could you do that with a "special" character in places to swap out with a
linefeeds? Something like a "^" or some such thing?
edolecki
On 1/9/06, Jobe Makar <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>
> I was wondering if there was an algorithm in existence that will convert
> an
> XML instance int
Hi guys,
I was wondering if there was an algorithm in existence that will convert an
XML instance into a string while adding white space back in (for
readability).
Thanks!
Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 919-609-0408
mobile: 919-610-5754
fax: 919-34
9 matches
Mail list logo