LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 20 Oct 2008 16:39:24 -0500
Reply-To:     Mary <mlhoward@avalon.net>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Mary <mlhoward@AVALON.NET>
Subject:      Re: Breaking a xml tag into substrings
Comments: To: mona <k_monal_99@YAHOO.COM>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
              reply-type=original

Another thing you can play around with is named input; I haven't used this in a long time, but it seems to work, though I had to get rid of your brackets first.

data set1; infile cards missover; input sample1=$ breakpoint=$ datejoin=$ grid=$ gridg=$; cards; Sample1="PC" breakpoint="XSR" Datejoin="1979-02-06" grid="A" gridg="0" Sample1="PC" Datejoin="1979-02-06" grid="A" gridg="0" run;

-Mary

----- Original Message ----- From: mona To: SAS-L@LISTSERV.UGA.EDU Sent: Monday, October 20, 2008 3:56 PM Subject: Breaking a xml tag into substrings

Hi all,

I am trying to use perl regular expression to break a xml string.I don't have the schema and the xml mapper , hence I am unable to use the xml engine.

But this is a sample string I am trying to break:

<Sample1="PC" breakpoint="XSR" Datejoin="1979-02-06" grid="A" gridg="0">

I cannot use scan or index here because the data varies from record to record.

I tried using prxparse and prxmatch but it is not working the way I want it to.

Any ideas?


Back to: Top of message | Previous page | Main SAS-L page