RE: How to read a XML file
"Steven Segers" <[email protected]> Mon, 21 Aug 2006 08:17:57 +0200
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. ------=_NextPart_000_D6E7_01C6C4FA.5001A130 Content-Transfer-Encoding: 7bit Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6C4E9.8BB5728A" ------_=_NextPart_001_01C6C4E9.8BB5728A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello =20 I just saw this mail. FourJs does not have any built-in functionality for this. The easiest way to handle this is to transform the xml into a flat-file using some external tool (an xslt-processor for instance) and then load or read the flat file. Alternatively you can either use an xml processor written in c or write your own parser. We have written a small 4gl module to read xml in a sax-like way; but I cannot publish the code for this module here. If you would be interested in this module you can always mail me in private; then I could discuss this with the management team. =20 Regards =20 Steven =20 _____ =20 From: Ahmed Ouzzine [mailto:[email protected]]=20 Sent: maandag 7 augustus 2006 18:45 To: [email protected] Subject: [fourjs-users] How to read a XML file =20 Hello ; =20 I have to read some data stored in a XML file. I didn't find any built in function like in genero "XmlReader". I'm using BDL Version 3.54 =20 Can somebody help me with this? =20 Thanks in advance, =20 Ahmed OUZZINE =20 =20 Steven Segers Quadreon NV - AMCC Technologiepark 1 B-9052 Ghent-Zwijnaarde Phone +32 9 245 96 73 Fax +32 9 220 50 19 [email protected] http://www.amcc.be =20 This email and any attached files are confidential and may be legally = privileged. If you are not the intended recipient, any disclosure, = reproduction, copying, distribution, or other dissemination or use of = this communication is strictly prohibited. If you have received this = transmission in error please accept our apologies, notify the sender = immediately and delete this mail together with all attachments that may = have been added. ------_=_NextPart_001_01C6C4E9.8BB5728A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <HTML > <HEAD> <META http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--><o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" = name=3D"PersonName" downloadurl=3D"http://www.microsoft.com"/> <!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style> <![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal; font-family:Arial; color:windowtext;} span.EmailStyle18 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:595.3pt 841.9pt; margin:70.85pt 70.85pt 70.85pt 70.85pt;} div.Section1 {page:Section1;} --> </style> </HEAD> <BODY lang=3DEN-US link=3Dblue vlink=3Dpurple> <DIV> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Hello<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>I just saw this mail. FourJs does = not have any built-in functionality for this. The easiest way to handle this is = to transform the xml into a flat-file using some external tool (an = xslt-processor for instance) and then load or read the flat = file.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Alternatively you can either use an = xml processor written in c or write your own parser. We have written a small = 4gl module to read xml in a sax-like way; but I cannot publish the code for = this module here.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>If you would be interested in this = module you can always mail me in private; then I could discuss this with the management team.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Regards<o:p></o:p></span></font></p>= <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Steven<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font = size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> </span></font></div></div></div><BR></DIV> <DIV> </DIV> <DIV> <FONT FACE=3D"Verdana"> <FONT SIZE=3D"1"> <FONT COLOR=3D"gray"><IMG ALT=3D"" HSPACE=3D"0" = SRC=3D"cid:70151d57b9@b42d4ea2-2157" ALIGN=3D"baseline" = BORDER=3D"0"> </FONT> </FONT> </FONT> </DIV> <P> <FONT FACE=3D"Verdana"> <FONT SIZE=3D"1"> <FONT COLOR=3D"black">Steven Segers<BR>Quadreon NV - = AMCC</FONT><BR>Technologiepark 1<BR>B-9052 = Ghent-Zwijnaarde<BR>Phone +32 9 245 96 = 73<BR>Fax +32 9 220 50 = 19<BR>[email protected]<BR></FONT> </FONT><A HREF=3D"http://www.quadreon.co/AMCCm"></A><FONT = FACE=3D"Verdana" COLOR=3D"gray" SIZE=3D"1"><A = HREF=3D"http://www.amcc.be/">http://www.amcc.be</A></FONT> </P> <P> </P> <FONT SIZE=3D"+0"> </FONT> <FONT SIZE=3D"+0"> </FONT> <FONT SIZE=3D"+0"> </FONT> <P> <FONT FACE=3D"Verdana"> <FONT SIZE=3D"1"> <FONT COLOR=3D"gray">This email and any attached files are confidential = and may be legally privileged. If you are not the intended recipient, = any disclosure, reproduction, copying, distribution, or other = dissemination or use of this communication is strictly prohibited. If = you have received this transmission in error please accept our = apologies, notify the sender immediately and delete this = mail together with all attachments that may have been = added.</FONT> </FONT> </FONT> </P> <P><div class=3DSection1><div><div class=3DMsoNormal align=3Dcenter = style=3D'text-align:center'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'><hr size=3D2 = width=3D"100%" align=3Dcenter = tabindex=3D-1></span></font></div></div></div><BR><div = class=3DSection1><div><div class=3DMsoNormal align=3Dcenter = style=3D'text-align:center'><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> </span></font></div> <p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt; font-family:Tahoma;font-weight:bold'>From:</span></font></b><font = size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> Ahmed = Ouzzine [mailto:[email protected]] <br> <b><span style=3D'font-weight:bold'>Sent:</span></b> maandag 7 augustus = 2006 18:45<br> <b><span style=3D'font-weight:bold'>To:</span></b> = [email protected]<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> [fourjs-users] = How to read a XML file</span></font><o:p></o:p></p> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span lang=3DFR = style=3D'font-size:12.0pt;color:#333399'>Hello ;<o:p></o:p></span></= font></p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span lang=3DFR = style=3D'font-size:12.0pt;color:#333399'><o:p> </o:p></span></font><= /p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span style=3D'font-size:12.0pt;color:#333399'>I have to read some data stored = in a XML file. I didn’t find any built in function like in genero “XmlReader”.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span style=3D'font-size:12.0pt;color:#333399'>I’m using BDL Version = 3.54<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span style=3D'font-size:12.0pt;color:#333399'><o:p> </o:p></span></font><= /p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span style=3D'font-size:12.0pt;color:#333399'>Can somebody help me with = this?<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span style=3D'font-size:12.0pt;color:#333399'><o:p> </o:p></span></font><= /p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span style=3D'font-size:12.0pt;color:#333399'>Thanks in = advance,<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span style=3D'font-size:12.0pt;color:#333399'><o:p> </o:p></span></font><= /p> <p class=3DMsoNormal><st1:PersonName ProductID=3D"Ahmed OUZZINE" = w:st=3D"on"><font size=3D3 color=3D"#333399" face=3D"Times New Roman"><span = style=3D'font-size:12.0pt; color:#333399'>Ahmed OUZZINE</span></font></st1:PersonName><font color=3D"#333399"><span = style=3D'color:#333399'><o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D3 color=3D"#333399" face=3D"Times New = Roman"><span style=3D'font-size:12.0pt;color:#333399'><o:p> </o:p></span></font><= /p> </div> </P></BODY></HTML> ------_=_NextPart_001_01C6C4E9.8BB5728A-- ------=_NextPart_000_D6E7_01C6C4FA.5001A130 Content-Type: image/jpeg; name="AMCC Logo (mini).jpg" Content-Transfer-Encoding: base64 Content-ID: <70151d57b9@b42d4ea2-2157> Content-Disposition: inline; filename="AMCC Logo (mini).jpg" /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkI CQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQ EBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAAvAKADASIA AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3 ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3 uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9U6KK 4H4z/Gnwd8D/AAm3ibxXM8ssz+Rp+nW+Gub+4I4jjX+bdAPwBunTlVkoQV2xSkoq8tjvJJI4Y2lm kVEUZZmOAB6k15V4q/aq/Z48GXL2eu/FfRBPGdrx2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