BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am trying to convert pdf form data to something useful (read SAS data sets). I am using the batch capabilities under Adobe Acrobat Pro to convert to pages/form to xml.

I've come with something, well I hestitate to use the term new, because it's all new to me, but, well, new...

Each one of these things start off with the following:

<================ start insert ==================>









xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
Adobe Designer 6.0


xmlns:xap="http://ns.adobe.com/xap/1.0/">
2005-09-07T10:16:31-05:00
2005-09-06T14:58:03-05:00
2005-09-06T15:26:56-05:00
Adobe Designer 6.0


xmlns:xapMM="http://ns.adobe.com/xap/1.0/mm/">
uuid:6df01935-27c9-4f55-9188-685f73b9397c
uuid:0b4b1c5f-06f7-4fda-88f7-d13da1540150


xmlns:dc="http://purl.org/dc/elements/1.1/">
xml



<================ end insert ==================>

it then continues with a lot of white space, then a bunch of
stuff. (I'll happily fill in the details if you're interested)

I went through the online XML trying to come up with something, but, hey, here I am, so what does that say?

Does anybody (I repeat, Chevell, are you listening) know how to read this?

And, just to throw a followup, monkey wrench into things - I have over 2000 of these. If possible, I'd like to append them all into one file. Yes/No/Are you crazy?

TIA
4 REPLIES 4
Eric_SAS
SAS Employee
I'm no expert but you should take a look at the XML mapper and the XML libname engine. - they work together. Mapper tells the engine how to map the xml into the dataset. You will probably have to create your own map.
Cynthia_sas
Diamond | Level 26
Unless your XML is very "regular", you will need to define an XML Map and use that map with the XML Libname Engine to read your XML into a SAS data set. XML Mapper allows you to define the path through the XML file in order to populate your SAS columns. Information on XML Mapper can be found at:
[pre]
http://support.sas.com/onlinedoc/913/getDoc/en/engxml.hlp/a002484805.htm
[/pre]
if you poke around the site, you will find some examples of using maps to convert XML to SAS dataset format.
cynthia
Chevell_sas
SAS Employee
The XML Mapper can be downloaded from the Client Side CD of the install, or by contacting Technical Support.
deleted_user
Not applicable
Finally got back here.
Thank you all.
Ended up using a somewhat hokey, but effective way.
Adobe has a "create spreadsheet" function that sort of did the job.

I'll look into the mapper when I get a chance.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1415 views
  • 0 likes
  • 4 in conversation