Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filtering a file to remove certain hex codes

Status
Not open for further replies.

gftech

Programmer
Aug 22, 2007
5
US
Hi,

I receive XML files to extract data from. Some times the files come with invalid XML characters such as 0x3, which caused the XML parser (written in Java) to fail. I'm thinking of a Perl preprocessor to remove the invalid chars. Any body has any idea how this can be done in Perl?

Thanks,
 
0x3 looks a little strange to me. Usually when you're encoding hex characters like that, you'll have two digits after the 'x'.
 
>0x3 looks a little strange to me
Sorry, it was a typo. x03.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top