all groups > dotnet xml > january 2006 >
You're in the

dotnet xml

group:

remove my carriage returns



remove my carriage returns mgonzales3
1/30/2006 12:04:04 PM
dotnet xml: i have a xml w/four carriage returns and for some reason this is preventing
me from executing my xpath queries. What is the best way to remove these?

thanks
Re: remove my carriage returns Martin Honnen
1/31/2006 12:00:00 AM


[quoted text, click to view]

Why, what exactly are you trying, how exactly does the XML input look?

--

Martin Honnen --- MVP XML
Re: remove my carriage returns mgonzales3
1/31/2006 6:51:27 AM
I changed the processor line from:

<?xml version="1.0" encoding="UTF-16"?>
to
<?xml version="1.0" encoding="UTF-8"?>

and now no problems.


Thanks for the help.



[quoted text, click to view]
Re: remove my carriage returns Peter Flynn
2/2/2006 10:35:00 PM
[quoted text, click to view]

If the CRs are in character data content, maybe use the
normalize-space() function in your comparison.

///Peter
--
AddThis Social Bookmark Button