Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

validating an xml with DTD external DTD

Former Member
0 Likes
1,734

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

6 REPLIES 6
Read only

athavanraja
Active Contributor
0 Likes
1,191

check this thread

Regards

Raja

Read only

Former Member
0 Likes
1,191

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

Read only

0 Likes
1,191

Hi Stefan,

Thanks for the hint and correcting me.

Regards

Raja

Read only

0 Likes
1,191

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

Read only

0 Likes
1,191

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

Read only

0 Likes
1,191

hi

thanks for yours answers, now i know it's not possible to validate an external with abap OO.

greetings from france.

serge