Hi Everyone I am getting below error in log file while importing an XML file. I use below SAS code. How to resolve it
filename xx temp;
libname xx xmlv2 '/DIT/Quo/ABCDE-ASTEST-20171027153917_10000004355.xml' automap=replace xmlmap=xx;
proc copy in=xx out=work;
run;
Error
NOTE: Remote submit to SERVER commencing. ERROR: The creation of the XML Mapper file failed. ERROR: Error in the LIBNAME statement. NOTE: Parsing with high validation. WARNING: XMLMap parser encountered XML issue Exception class: org.xml.sax.SAXParseException ID: Message: schema_reference.4: Failed to read schema document use 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . Line: 1 Column: 272 ERROR: Libref XX is not assigned.
Hi,
Hope the below weblink helps:
As mentioned in that link, changing parsing validation level from 'High' to 'Minimal' worked. But just trying to find out adverse effects (if any) of not using 'High' validation when parsing. Can anyone provide futher information as to which option is used as a 'default' or there are any rules around parsing levels. Thanks.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.