cancel
Showing results for 
Search instead for 
Did you mean: 

valid-xml not valid as xml doc in xml loader or as xslt input

Former Member
0 Kudos

Hello ,

I am working with xmii 12.0 .

When i give fallowing valid xml as input to either "xml loader " or as "xslt input" i encounter the the error "mark up in the document fallowing the root element is not well formed. "

<?xml version="1.0"?>

<Table>

<Rowset>

<Row>name</Row>

</Rowset>

</Table>

Please give inputs to resolve the error.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Polaku,

we also use MII 12.0. The XML Loader could load the xml you copied above using address "db://<folder>/<xmlfile>" without problems.

Where is your file located? On MII WEB tab or outside MII? Maybe you need to add credentials if you load the file from another server? If the file is in MII, did you use "web://" or "db://" as prefix? If "web://", try "db://".

Michael

Former Member
0 Kudos

Michael,

Exactly, I am using a JCO interface to call a function , and its giving response like

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

<Z_XMII_VALUATED_STOCK>

<TABLES><INT_STOCK><item><MTBEZ>Fin.Products W/ Purch.</MTBEZ><QUANTITY>0</QUANTITY></item><item><MTBEZ>Semi-finished products</MTBEZ><QUANTITY>0</QUANTITY></item></INT_STOCK></TABLES>

</Z_XMII_VALUATED_STOCK>

then , i used a xslt tranformation to change the respose, where i faced the error "markup fallowing the root element is not well formed"

Further i tried to manipulate the simple xml using xml loader where i faced the same error.

Please suggest me.

Former Member
0 Kudos

Polaku,

have a look at the following thread: [Markup error and credentials|http://forums.sdn.sap.com/click.jspa?searchID=32438178&messageID=6946356].

Have you seen my questions above? Where do you get your simple xml file from? In your second post you said "manipulating the simple xml fails". Can you read the file with the XML loader and the error occurs later?

How does your XSL look like?

Which exact version of MII 12.0 do you use?

Michael

Former Member
0 Kudos

Michael ,

I am using 12.0.7 ..

The simple xml is the one which i mentioned in question1. the xml loader is giving error when i tried to generate the sample on xml loader action.

The xml loader or xslt is giving error for any xml.

The xml is located under web tab & am accessing it using url.

Former Member
0 Kudos

Polaku,

just a thought: you said you have used the URL to load it. Have you tried to drag the xml file into an empty sequence of a workbench transaction and then generate a sample? Do you get the same error then or does it work correctly?

I get the "markup error" if I use the URL without credentials...I can generate the file successfully if I use the prefix "db://" instead of "http://<server>:<port>/..." or if I use "http://<server>:<port>/..." with credentials.

Michael

Answers (0)