We have a vendor that sends us XML with a
<?xml-stylesheet type="text/xsl" href="sw_stylesheet.xsl"?>
as the first line. When we try to insert and validate this xml we get an error. If we strip the line off that would work, but then we are violating a rule that we keep all XML exactly as we receive it.
Is there anyway of handling this?
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
2 replies Latest Post - 2011-10-10T13:45:27Z by BenEisenstein
Pinned topic <?xml and validation
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-10-10T13:45:27Z at 2011-10-10T13:45:27Z by BenEisenstein
MatthiasNicola 120000E28R321 PostsACCEPTED ANSWER
Re: <?xml and validation2011-10-07T18:03:55Z in response to BenEisensteinHi Ben,
I will look into it later today. In the meantime, a few questions to understand better:
(1) Just to make sure: is this on DB2 LUW or DB2 for z/OS?
(2) What is the error message that you received?
(3) What happens if you insert that XML without validation. Does it go through or do you also receive an error?
BenEisenstein 270001FK1W8 Posts