Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Way To Parse Memo
Message
 
 
To
09/07/2009 21:35:00
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01411324
Message ID:
01411327
Views:
58
Jeff,

Look into using RegExp like shown, for example, here
Re: RegEx interface Thread #1323910 Message #1323919

You should try to figure the pattern yourself. (Carriage return followed by the
</GLNOTES>
Or just verify that both GLNOTES and /GLNOTES are on the same line using VFP functions.

>I'm working with an accounting application that stores it GL notes as XML. I'm not sure why but it's causing a lot of problems if there is a carriage return in the wrong place. The first example below is the correct format. The second example reflects what it looks like with the extra carriage return. I think if I can find all of the records that don't have the GLNOTES tags on the same line they will be easy to correct. What's the best way for me to find the records that meet this condition?
>
>
><?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
><VFPDATA>
><GLTDES>
><GLNOTES> PaidOuts - 01/06/2008              </GLNOTES>  
></GLTDES>
></VFPDATA>
>
>
>
><?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
><VFPDATA>
><GLTDES>
><GLNOTES> PaidOuts - 01/06/2008              
></GLNOTES>  
></GLTDES>
></VFPDATA>
>
>
>TIA
>
>Jeff
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform