[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xml-dev
Subject:    Re: [xml-dev] Parsing an XML file
From:       Esteban Pizzini <esteban.pizzini () gmail ! com>
Date:       2005-11-22 16:03:59
Message-ID: 87c90c1e0511220803kcff7983yffa59b46d83c91e () mail ! gmail ! com
[Download RAW message or body]

I think it's a good way

I solve the same problem using an XSLT with <xalan:write select="filename">
to write in different files.

an example:
<xalan:write select="$filename">
<html>
<head>
<title>Jurisprudencia que cita a la presente</title>
<style type="text/css">
<xsl:value-of select="$estilos_html"/>
</style>
</head>
<body>
</body>

On 11/21/05, Byarlay, Wayne A. <wab@purdue.edu> wrote:
>
> Hello again.
>
> I have another happier question regarding XML.
>
> I am a newbie but my boss has given me a very high priority on this.
> (Today, or at least before thanksgiving!)
>
> I have a large 80mb xml file. It contains records of data, with several
> fields for each record. I need to parse this large xml file into
> individual xml files, each containing just one record.
>
> I have been investigating a perl module called xml::simple, and I was
> curious if this is the best / a good way to do what I need to do.
> Apparently it only needs to be done once.
>
> Any advice?
>
> Wab.
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
>
>


--
----------------------------------------------------------------------
Esteban Pizzini
(http://mod-apache-snmp.sourceforge.net)

[Attachment #3 (text/html)]

I think it's a good way<br>
<br>
I solve the same problem using an XSLT with &lt;xalan:write \
select=&quot;filename&quot;&gt; to write in different files.<br> <br>
an example:<br>
&lt;xalan:write select=&quot;$filename&quot;&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;html&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;head&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;title&gt;Jurisprudencia que cita a la
presente&lt;/title&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;style type=&quot;text/css&quot;&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;xsl:value-of
select=&quot;$estilos_html&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;/style&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/head&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;body&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;/body&gt;<br><br><div><span class="gmail_quote">On 11/21/05, \
<b class="gmail_sendername">Byarlay, Wayne A.</b> &lt;<a \
href="mailto:wab@purdue.edu">wab@purdue.edu</a>&gt; wrote:</span><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> Hello again.<br><br>I have another happier question \
regarding XML.<br><br>I am a newbie but my boss has given me a very high priority on \
this.<br>(Today, or at least before thanksgiving!)<br><br>I have a large 80mb xml \
file. It contains records of data, with several <br>fields for each record. I need to \
parse this large xml file into<br>individual xml files, each containing just one \
record.<br><br>I have been investigating a perl module called xml::simple, and I \
was<br>curious if this is the best / a good way to do what I need to do. \
<br>Apparently it only needs to be done once.<br><br>Any \
advice?<br><br>Wab.<br><br>-----------------------------------------------------------------<br>The \
xml-dev list is sponsored by XML.org &lt;<a href="http://www.xml.org"> \
http://www.xml.org</a>&gt;, an<br>initiative of OASIS &lt;<a \
href="http://www.oasis-open.org">http://www.oasis-open.org</a>&gt;<br><br>The list \
archives are at <a href="http://lists.xml.org/archives/xml-dev/">http://lists.xml.org/archives/xml-dev/
 </a><br><br>To subscribe or unsubscribe from this list use the \
subscription<br>manager: &lt;<a \
href="http://www.oasis-open.org/mlmanage/index.php">http://www.oasis-open.org/mlmanage/index.php</a>&gt;<br><br></blockquote></div>
 <br><br clear="all"><br>-- \
<br>----------------------------------------------------------------------<br>Esteban \
Pizzini<br>(<a href="http://mod-apache-snmp.sourceforge.net">http://mod-apache-snmp.sourceforge.net</a>)




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic