2006 Jul 26 8:26 AM
Hi
how can i validate my XML File with an external DTD ?
thanks for your replies
serge
Hi
how can i validate my XML File with an external DTD ?
thanks for your replies
serge
2006 Jul 29 11:39 AM
2006 Jul 29 8:42 PM
Hi,
when you use the XML Library, the interface <b>if_ixml_parser</b> has a static method <b>set_validation( )</b> to activate and deactivate a DTD validation.
There are the follow constants in the if_ixml_parser for the DTD validation-mode:
<b>if_ixml_parser=>co_no_validation</b>
Do not validate the XML-Document against the document type definition (DTD)
<b>if_ixml_parser=>co_validate</b>
Validate the XML-Document against the document type definition (DTD)
<b>if_ixml_parser=>co_validate_if_dtd</b>
Validate the XML-Document against the document type definition (DTD) if a DTD is specified. Otherwise parse the Document in non validating mode.
see also the SAP online-help:
<a href="http://help.sap.com/saphelp_webas610/helpdata/de/bb/5766b2dca511d4990b00508b6b8b11/content.htm">Interface if_ixml_parser</a>
Regards
Stefan
2006 Jul 30 8:27 AM
2006 Jul 30 10:29 AM
Hi Raja,
hope you did not understand my post as a correction of your interesting hint to the sample report <b>T_DTD_VALIDATION</b>.
So thanks and many greeting from Germany...
Stefan
2006 Jul 30 10:36 AM
No not at all.
You had given a good hint to clear my doubt (<i>i am not sure whether SAP supports DTD from exteranl source</i>) i had mentioned in the linked thread.
Thanks again.
Greetings from an Indian from Saudi.
Raja
2006 Jul 30 11:51 PM
hi
thanks for yours answers, now i know it's not possible to validate an external with abap OO.
greetings from france.
serge
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |