Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML payload

Reply
Thread Tools

XML payload

 
 
Ravi
Guest
Posts: n/a
 
      06-04-2009
Hi

i need some help in formating XML payload escape characters.
My job involves analyzing web sphere logs every day where payload is
not formated properly

Example
Before

<Order:id>160559806</Order:id>

<Order:addressStatus>Confirmed</Order:addressStatus>

<Order:stateOrProvince>VIC</Order:stateOrProvince>


After

<Order:id>160559806</Order:id>
<Order:addressStatus>Confirmed</Order:addressStatus>
<Order:stateOrProvince>VIC</Order:stateOrProvince>

i tried simple replace option but tags are not starting at position,
its all jumbling.

Can some one help me with this, is there any tool available ????
Thanks
Ravi
 
Reply With Quote
 
 
 
 
Luuk
Guest
Posts: n/a
 
      06-04-2009
Ravi schreef:
> Hi
>
> i need some help in formating XML payload escape characters.
> My job involves analyzing web sphere logs every day where payload is
> not formated properly
>
> Example
> Before
>
> &lt;Order:id>160559806&lt;/Order:id>&#xA;
> &lt;Order:addressStatus>Confirmed&lt;/Order:addressStatus>&#xA;
> &lt;Order:stateOrProvince>VIC&lt;/Order:stateOrProvince>&#xA;
>
> After
>
> <Order:id>160559806</Order:id>
> <Order:addressStatus>Confirmed</Order:addressStatus>
> <Order:stateOrProvince>VIC</Order:stateOrProvince>
>
> i tried simple replace option but tags are not starting at position,
> its all jumbling.
>
> Can some one help me with this, is there any tool available ????
> Thanks
> Ravi


sed -e 's/&lt;/</g' -e 's/&#xA;//g' inputfile

--
Luuk
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
post xml payload with urllib brad Python 1 08-14-2007 07:24 PM
IPSEC: reserved not zero on payload message when connecting site-to-site Arjan Cisco 2 10-13-2005 06:37 PM
5350 can't use G711 payload type for fax pass-through?? Greg Cisco 2 04-05-2005 01:53 PM
xml payload to webservice Old Man ASP .Net Web Services 1 09-16-2004 09:53 PM
SchemaLocation within Xml payload and WSDL.exe KC ASP .Net Web Services 0 08-27-2003 01:16 PM



Advertisments