Dear all,
I would like to import an XML datafile into SAS.
Alongside this .xml file a .map file (XMLMap) was created to allow for correct data structure.
However, when executing the statement we run into an error.
We don't have any clue on where to start looking for the error, i.e. in the XML file or the XMLMap. Could somebody point us to where the error would most likely be? Or even what it actually is telling us?
/*USE XMLMAP AND XMLV2 ENGINE TO IMPORT DOCUMENTS*/
filename out 'E:\data.xml';
filename map 'E:\data.map';
libname out xmlv2 xmlmap=map xmlprocess=permit;
The error:
ERROR: PCDATA content found outside column/table boundary. content is >.
ERROR: Error in the LIBNAME statement.
I cannot share the dataset itself since this data is not allowed to be public yet.
We appreciate any input, advice and guidance!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.