473,385 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Parsing XML file

I'm trying to parse a XML file and extract a few data elements. I'm having
trouble extracting the exact elements. I get the entire content of the XML
file in the text box currently. I can't figure out how to just get the
elements/attirbutes that I want. This is being done in Visual Web Developer
Express.

The code I have so far is:

Dim sr As New System.IO.StreamReader("C:\test123\upload\" +
FileUpload1.FileName)
Dim xr As New System.Xml.XmlTextReader(sr)
Dim m_xmld = New System.Xml.XmlDocument
Dim m_nodelist As System.Xml.XmlNodeList
Dim m_node As System.Xml.XmlNode
'Dim startdate As System.Xml.XmlNode

'Create the XML Document
'Load the Xml file

m_xmld.Load(xr)
m_nodelist =
m_xmld.SelectNodes("/TestMessage/AuthenticatedPublic/MessageId")
TextBox1.Text = m_xmld.getElementsByTagName("MessageId")

The XML file looks like this (partial):

<?xml version="1.0" encoding="UTF-8"?>
<TestMessage xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
xmlns:enc="http://www.w3.org/2001/04/xmlenc#">
<AuthenticatedPublic Id="ID_AuthenticatedPublic">
<MessageId>urn:uuid:efeb77ff-eab6-4f4b-8fc8-d1f7293fec91</MessageId>
<MessageType>http://www.test123.com/PROTO-TEST-KDM-20040311#</MessageType>
<AnnotationText>TEST 123</AnnotationText>
<IssueDate>2006-01-30T21:31:32+00:00</IssueDate>
<Signer>

<dsig:X509IssuerName>/dnQualifier=JIQs8tRZIGKLLlyGkKOqMLonGpw=/O=dc.Root.ca.test_rje_xp_laptop.com/OU=test
RJE_XP_LAPTOP/CN=TMS.Test.2A51FBD4-58C2-4955-82FE-8FB31C15C0F7.v0.2.3.0</dsig:X509IssuerName>
<dsig:X509SerialNumber>b5:c9:ac:0a:83:e2:ef:d4
</dsig:X509SerialNumber>
</Signer> <RequiredExtensions>
<Recipient>
<X509IssuerSerial>
<dsig:X509IssuerName/>
<dsig:X509SerialNumber/>
</X509IssuerSerial> <X509SubjectName/>
</Recipient>
<CompositionPlaylistId>urn:uuid:d2b7595e-f852-f246-8c74-3d9724f923a8</CompositionPlaylistId>
<ContentTitleText>StEM_MM_2k_XYZ_CRYPT</ContentTitleText>

<ContentKeysNotValidBefore>2006-01-31T10:00:00+00:00</ContentKeysNotValidBefore>

<ContentKeysNotValidAfter>2006-02-28T09:59:00+00:00</ContentKeysNotValidAfter>
May 8 '06 #1
5 3244
You are doing a mistake while assiging the .TEXT property of the Text box.
Change the code as mentioned below ...

XmlDocument xdTe = new XmlDocument();
xdTe.PreserveWhitespace=true;
xdTe.Load(("C:\test123\upload\" + FileUpload1.FileName);
TextBox1.Clear();
XmlNodeList xnlItems = xdSmp.SelectNodes('//MessageId');
foreach(XmlNode xnSmp in xnlItems)
{
TextBox1.AppendText(xnSmp.InnerXml);
TextBox1.AppendText(Environment.NewLine);
}

Hope this works, it worked for me...
Cheers,
--
Every thing is perfect, as long as you share!!!
"ttomes" wrote:
I'm trying to parse a XML file and extract a few data elements. I'm having
trouble extracting the exact elements. I get the entire content of the XML
file in the text box currently. I can't figure out how to just get the
elements/attirbutes that I want. This is being done in Visual Web Developer
Express.

The code I have so far is:

Dim sr As New System.IO.StreamReader("C:\test123\upload\" +
FileUpload1.FileName)
Dim xr As New System.Xml.XmlTextReader(sr)
Dim m_xmld = New System.Xml.XmlDocument
Dim m_nodelist As System.Xml.XmlNodeList
Dim m_node As System.Xml.XmlNode
'Dim startdate As System.Xml.XmlNode

'Create the XML Document
'Load the Xml file

m_xmld.Load(xr)
m_nodelist =
m_xmld.SelectNodes("/TestMessage/AuthenticatedPublic/MessageId")
TextBox1.Text = m_xmld.getElementsByTagName("MessageId")

The XML file looks like this (partial):

<?xml version="1.0" encoding="UTF-8"?>
<TestMessage xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
xmlns:enc="http://www.w3.org/2001/04/xmlenc#">
<AuthenticatedPublic Id="ID_AuthenticatedPublic">
<MessageId>urn:uuid:efeb77ff-eab6-4f4b-8fc8-d1f7293fec91</MessageId>
<MessageType>http://www.test123.com/PROTO-TEST-KDM-20040311#</MessageType>
<AnnotationText>TEST 123</AnnotationText>
<IssueDate>2006-01-30T21:31:32+00:00</IssueDate>
<Signer>

<dsig:X509IssuerName>/dnQualifier=JIQs8tRZIGKLLlyGkKOqMLonGpw=/O=dc.Root.ca.test_rje_xp_laptop.com/OU=test
RJE_XP_LAPTOP/CN=TMS.Test.2A51FBD4-58C2-4955-82FE-8FB31C15C0F7.v0.2.3.0</dsig:X509IssuerName>
<dsig:X509SerialNumber>b5:c9:ac:0a:83:e2:ef:d4
</dsig:X509SerialNumber>
</Signer> <RequiredExtensions>
<Recipient>
<X509IssuerSerial>
<dsig:X509IssuerName/>
<dsig:X509SerialNumber/>
</X509IssuerSerial> <X509SubjectName/>
</Recipient>
<CompositionPlaylistId>urn:uuid:d2b7595e-f852-f246-8c74-3d9724f923a8</CompositionPlaylistId>
<ContentTitleText>StEM_MM_2k_XYZ_CRYPT</ContentTitleText>

<ContentKeysNotValidBefore>2006-01-31T10:00:00+00:00</ContentKeysNotValidBefore>

<ContentKeysNotValidAfter>2006-02-28T09:59:00+00:00</ContentKeysNotValidAfter>

May 10 '06 #2
I changed the code but I still get the entire XML file as the value for the
text box. Can this be a problem with Visual Web Developer 2005 Express
Edition?

I now have the following code:
Dim m_xmld = New System.Xml.XmlDocument
m_xmld.PreserveWhitespace = True
Dim m_nodelist As System.Xml.XmlNodeList
Dim m_node As System.Xml.XmlNode
'Create the XML Document
'Load the Xml file

m_xmld.Load("C:\test123\upload\" + FileUpload1.FileName)
m_nodelist = m_xmld.SelectNodes("//MessageId")

'Loop through the nodes

For Each m_node In m_nodelist
TextBox1.Text = m_xmld.InnerXml
Next

"Chakravarthy" wrote:
You are doing a mistake while assiging the .TEXT property of the Text box.
Change the code as mentioned below ...

XmlDocument xdTe = new XmlDocument();
xdTe.PreserveWhitespace=true;
xdTe.Load(("C:\test123\upload\" + FileUpload1.FileName);
TextBox1.Clear();
XmlNodeList xnlItems = xdSmp.SelectNodes('//MessageId');
foreach(XmlNode xnSmp in xnlItems)
{
TextBox1.AppendText(xnSmp.InnerXml);
TextBox1.AppendText(Environment.NewLine);
}

Hope this works, it worked for me...
Cheers,
--
Every thing is perfect, as long as you share!!!
"ttomes" wrote:
I'm trying to parse a XML file and extract a few data elements. I'm having
trouble extracting the exact elements. I get the entire content of the XML
file in the text box currently. I can't figure out how to just get the
elements/attirbutes that I want. This is being done in Visual Web Developer
Express.

The code I have so far is:

Dim sr As New System.IO.StreamReader("C:\test123\upload\" +
FileUpload1.FileName)
Dim xr As New System.Xml.XmlTextReader(sr)
Dim m_xmld = New System.Xml.XmlDocument
Dim m_nodelist As System.Xml.XmlNodeList
Dim m_node As System.Xml.XmlNode
'Dim startdate As System.Xml.XmlNode

'Create the XML Document
'Load the Xml file

m_xmld.Load(xr)
m_nodelist =
m_xmld.SelectNodes("/TestMessage/AuthenticatedPublic/MessageId")
TextBox1.Text = m_xmld.getElementsByTagName("MessageId")

The XML file looks like this (partial):

<?xml version="1.0" encoding="UTF-8"?>
<TestMessage xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
xmlns:enc="http://www.w3.org/2001/04/xmlenc#">
<AuthenticatedPublic Id="ID_AuthenticatedPublic">
<MessageId>urn:uuid:efeb77ff-eab6-4f4b-8fc8-d1f7293fec91</MessageId>
<MessageType>http://www.test123.com/PROTO-TEST-KDM-20040311#</MessageType>
<AnnotationText>TEST 123</AnnotationText>
<IssueDate>2006-01-30T21:31:32+00:00</IssueDate>
<Signer>

<dsig:X509IssuerName>/dnQualifier=JIQs8tRZIGKLLlyGkKOqMLonGpw=/O=dc.Root.ca.test_rje_xp_laptop.com/OU=test
RJE_XP_LAPTOP/CN=TMS.Test.2A51FBD4-58C2-4955-82FE-8FB31C15C0F7.v0.2.3.0</dsig:X509IssuerName>
<dsig:X509SerialNumber>b5:c9:ac:0a:83:e2:ef:d4
</dsig:X509SerialNumber>
</Signer> <RequiredExtensions>
<Recipient>
<X509IssuerSerial>
<dsig:X509IssuerName/>
<dsig:X509SerialNumber/>
</X509IssuerSerial> <X509SubjectName/>
</Recipient>
<CompositionPlaylistId>urn:uuid:d2b7595e-f852-f246-8c74-3d9724f923a8</CompositionPlaylistId>
<ContentTitleText>StEM_MM_2k_XYZ_CRYPT</ContentTitleText>

<ContentKeysNotValidBefore>2006-01-31T10:00:00+00:00</ContentKeysNotValidBefore>

<ContentKeysNotValidAfter>2006-02-28T09:59:00+00:00</ContentKeysNotValidAfter>

May 10 '06 #3
Hey,

Look .... there is a small issue with the code... check your foreach look
once again... you should have m_node.innerxml instead of m_xmld.innerxml...

What do you say?
--
Every thing is perfect, as long as you share!!!
"ttomes" wrote:
I changed the code but I still get the entire XML file as the value for the
text box. Can this be a problem with Visual Web Developer 2005 Express
Edition?

I now have the following code:
Dim m_xmld = New System.Xml.XmlDocument
m_xmld.PreserveWhitespace = True
Dim m_nodelist As System.Xml.XmlNodeList
Dim m_node As System.Xml.XmlNode
'Create the XML Document
'Load the Xml file

m_xmld.Load("C:\test123\upload\" + FileUpload1.FileName)
m_nodelist = m_xmld.SelectNodes("//MessageId")

'Loop through the nodes

For Each m_node In m_nodelist
TextBox1.Text = m_xmld.InnerXml
Next

"Chakravarthy" wrote:
You are doing a mistake while assiging the .TEXT property of the Text box.
Change the code as mentioned below ...

XmlDocument xdTe = new XmlDocument();
xdTe.PreserveWhitespace=true;
xdTe.Load(("C:\test123\upload\" + FileUpload1.FileName);
TextBox1.Clear();
XmlNodeList xnlItems = xdSmp.SelectNodes('//MessageId');
foreach(XmlNode xnSmp in xnlItems)
{
TextBox1.AppendText(xnSmp.InnerXml);
TextBox1.AppendText(Environment.NewLine);
}

Hope this works, it worked for me...
Cheers,
--
Every thing is perfect, as long as you share!!!
"ttomes" wrote:
I'm trying to parse a XML file and extract a few data elements. I'm having
trouble extracting the exact elements. I get the entire content of the XML
file in the text box currently. I can't figure out how to just get the
elements/attirbutes that I want. This is being done in Visual Web Developer
Express.

The code I have so far is:

Dim sr As New System.IO.StreamReader("C:\test123\upload\" +
FileUpload1.FileName)
Dim xr As New System.Xml.XmlTextReader(sr)
Dim m_xmld = New System.Xml.XmlDocument
Dim m_nodelist As System.Xml.XmlNodeList
Dim m_node As System.Xml.XmlNode
'Dim startdate As System.Xml.XmlNode

'Create the XML Document
'Load the Xml file

m_xmld.Load(xr)
m_nodelist =
m_xmld.SelectNodes("/TestMessage/AuthenticatedPublic/MessageId")
TextBox1.Text = m_xmld.getElementsByTagName("MessageId")

The XML file looks like this (partial):

<?xml version="1.0" encoding="UTF-8"?>
<TestMessage xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
xmlns:enc="http://www.w3.org/2001/04/xmlenc#">
<AuthenticatedPublic Id="ID_AuthenticatedPublic">
<MessageId>urn:uuid:efeb77ff-eab6-4f4b-8fc8-d1f7293fec91</MessageId>
<MessageType>http://www.test123.com/PROTO-TEST-KDM-20040311#</MessageType>
<AnnotationText>TEST 123</AnnotationText>
<IssueDate>2006-01-30T21:31:32+00:00</IssueDate>
<Signer>

<dsig:X509IssuerName>/dnQualifier=JIQs8tRZIGKLLlyGkKOqMLonGpw=/O=dc.Root.ca.test_rje_xp_laptop.com/OU=test
RJE_XP_LAPTOP/CN=TMS.Test.2A51FBD4-58C2-4955-82FE-8FB31C15C0F7.v0.2.3.0</dsig:X509IssuerName>
<dsig:X509SerialNumber>b5:c9:ac:0a:83:e2:ef:d4
</dsig:X509SerialNumber>
</Signer> <RequiredExtensions>
<Recipient>
<X509IssuerSerial>
<dsig:X509IssuerName/>
<dsig:X509SerialNumber/>
</X509IssuerSerial> <X509SubjectName/>
</Recipient>
<CompositionPlaylistId>urn:uuid:d2b7595e-f852-f246-8c74-3d9724f923a8</CompositionPlaylistId>
<ContentTitleText>StEM_MM_2k_XYZ_CRYPT</ContentTitleText>

<ContentKeysNotValidBefore>2006-01-31T10:00:00+00:00</ContentKeysNotValidBefore>

<ContentKeysNotValidAfter>2006-02-28T09:59:00+00:00</ContentKeysNotValidAfter>

May 10 '06 #4
Ah...those minor details..... Thank you very much for your help.

"Chakravarthy" wrote:
Hey,

Look .... there is a small issue with the code... check your foreach look
once again... you should have m_node.innerxml instead of m_xmld.innerxml...

What do you say?
--
Every thing is perfect, as long as you share!!!
"ttomes" wrote:
I changed the code but I still get the entire XML file as the value for the
text box. Can this be a problem with Visual Web Developer 2005 Express
Edition?

I now have the following code:
Dim m_xmld = New System.Xml.XmlDocument
m_xmld.PreserveWhitespace = True
Dim m_nodelist As System.Xml.XmlNodeList
Dim m_node As System.Xml.XmlNode
'Create the XML Document
'Load the Xml file

m_xmld.Load("C:\test123\upload\" + FileUpload1.FileName)
m_nodelist = m_xmld.SelectNodes("//MessageId")

'Loop through the nodes

For Each m_node In m_nodelist
TextBox1.Text = m_xmld.InnerXml
Next

"Chakravarthy" wrote:
You are doing a mistake while assiging the .TEXT property of the Text box.
Change the code as mentioned below ...

XmlDocument xdTe = new XmlDocument();
xdTe.PreserveWhitespace=true;
xdTe.Load(("C:\test123\upload\" + FileUpload1.FileName);
TextBox1.Clear();
XmlNodeList xnlItems = xdSmp.SelectNodes('//MessageId');
foreach(XmlNode xnSmp in xnlItems)
{
TextBox1.AppendText(xnSmp.InnerXml);
TextBox1.AppendText(Environment.NewLine);
}

Hope this works, it worked for me...
Cheers,
--
Every thing is perfect, as long as you share!!!
"ttomes" wrote:

> I'm trying to parse a XML file and extract a few data elements. I'm having
> trouble extracting the exact elements. I get the entire content of the XML
> file in the text box currently. I can't figure out how to just get the
> elements/attirbutes that I want. This is being done in Visual Web Developer
> Express.
>
>
>
> The code I have so far is:
>
> Dim sr As New System.IO.StreamReader("C:\test123\upload\" +
> FileUpload1.FileName)
> Dim xr As New System.Xml.XmlTextReader(sr)
> Dim m_xmld = New System.Xml.XmlDocument
> Dim m_nodelist As System.Xml.XmlNodeList
> Dim m_node As System.Xml.XmlNode
> 'Dim startdate As System.Xml.XmlNode
>
>
>
> 'Create the XML Document
> 'Load the Xml file
>
> m_xmld.Load(xr)
> m_nodelist =
> m_xmld.SelectNodes("/TestMessage/AuthenticatedPublic/MessageId")
>
>
> TextBox1.Text = m_xmld.getElementsByTagName("MessageId")
>
>
>
> The XML file looks like this (partial):
>
> <?xml version="1.0" encoding="UTF-8"?>
> <TestMessage xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
> xmlns:enc="http://www.w3.org/2001/04/xmlenc#">
> <AuthenticatedPublic Id="ID_AuthenticatedPublic">
> <MessageId>urn:uuid:efeb77ff-eab6-4f4b-8fc8-d1f7293fec91</MessageId>
> <MessageType>http://www.test123.com/PROTO-TEST-KDM-20040311#</MessageType>
> <AnnotationText>TEST 123</AnnotationText>
> <IssueDate>2006-01-30T21:31:32+00:00</IssueDate>
> <Signer>
>
> <dsig:X509IssuerName>/dnQualifier=JIQs8tRZIGKLLlyGkKOqMLonGpw=/O=dc.Root.ca.test_rje_xp_laptop.com/OU=test
> RJE_XP_LAPTOP/CN=TMS.Test.2A51FBD4-58C2-4955-82FE-8FB31C15C0F7.v0.2.3.0</dsig:X509IssuerName>
> <dsig:X509SerialNumber>b5:c9:ac:0a:83:e2:ef:d4
> </dsig:X509SerialNumber>
> </Signer> <RequiredExtensions>
> <Recipient>
> <X509IssuerSerial>
> <dsig:X509IssuerName/>
> <dsig:X509SerialNumber/>
> </X509IssuerSerial> <X509SubjectName/>
> </Recipient>
> <CompositionPlaylistId>urn:uuid:d2b7595e-f852-f246-8c74-3d9724f923a8</CompositionPlaylistId>
> <ContentTitleText>StEM_MM_2k_XYZ_CRYPT</ContentTitleText>
>
> <ContentKeysNotValidBefore>2006-01-31T10:00:00+00:00</ContentKeysNotValidBefore>
>
> <ContentKeysNotValidAfter>2006-02-28T09:59:00+00:00</ContentKeysNotValidAfter>
>
>

May 10 '06 #5
Did my post answer your question?
Was this helpful to you?

If the answer is yes, why dont you click the below buttons?
--
Every thing is perfect, as long as you share!!!
"ttomes" wrote:
Ah...those minor details..... Thank you very much for your help.

"Chakravarthy" wrote:
Hey,

Look .... there is a small issue with the code... check your foreach look
once again... you should have m_node.innerxml instead of m_xmld.innerxml...

What do you say?
--
Every thing is perfect, as long as you share!!!
"ttomes" wrote:
I changed the code but I still get the entire XML file as the value for the
text box. Can this be a problem with Visual Web Developer 2005 Express
Edition?

I now have the following code:
Dim m_xmld = New System.Xml.XmlDocument
m_xmld.PreserveWhitespace = True
Dim m_nodelist As System.Xml.XmlNodeList
Dim m_node As System.Xml.XmlNode
'Create the XML Document
'Load the Xml file

m_xmld.Load("C:\test123\upload\" + FileUpload1.FileName)
m_nodelist = m_xmld.SelectNodes("//MessageId")

'Loop through the nodes

For Each m_node In m_nodelist
TextBox1.Text = m_xmld.InnerXml
Next

"Chakravarthy" wrote:

> You are doing a mistake while assiging the .TEXT property of the Text box.
> Change the code as mentioned below ...
>
> XmlDocument xdTe = new XmlDocument();
> xdTe.PreserveWhitespace=true;
> xdTe.Load(("C:\test123\upload\" + FileUpload1.FileName);
> TextBox1.Clear();
> XmlNodeList xnlItems = xdSmp.SelectNodes('//MessageId');
> foreach(XmlNode xnSmp in xnlItems)
> {
> TextBox1.AppendText(xnSmp.InnerXml);
> TextBox1.AppendText(Environment.NewLine);
> }
>
> Hope this works, it worked for me...
> Cheers,
> --
> Every thing is perfect, as long as you share!!!
>
>
> "ttomes" wrote:
>
> > I'm trying to parse a XML file and extract a few data elements. I'm having
> > trouble extracting the exact elements. I get the entire content of the XML
> > file in the text box currently. I can't figure out how to just get the
> > elements/attirbutes that I want. This is being done in Visual Web Developer
> > Express.
> >
> >
> >
> > The code I have so far is:
> >
> > Dim sr As New System.IO.StreamReader("C:\test123\upload\" +
> > FileUpload1.FileName)
> > Dim xr As New System.Xml.XmlTextReader(sr)
> > Dim m_xmld = New System.Xml.XmlDocument
> > Dim m_nodelist As System.Xml.XmlNodeList
> > Dim m_node As System.Xml.XmlNode
> > 'Dim startdate As System.Xml.XmlNode
> >
> >
> >
> > 'Create the XML Document
> > 'Load the Xml file
> >
> > m_xmld.Load(xr)
> > m_nodelist =
> > m_xmld.SelectNodes("/TestMessage/AuthenticatedPublic/MessageId")
> >
> >
> > TextBox1.Text = m_xmld.getElementsByTagName("MessageId")
> >
> >
> >
> > The XML file looks like this (partial):
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <TestMessage xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
> > xmlns:enc="http://www.w3.org/2001/04/xmlenc#">
> > <AuthenticatedPublic Id="ID_AuthenticatedPublic">
> > <MessageId>urn:uuid:efeb77ff-eab6-4f4b-8fc8-d1f7293fec91</MessageId>
> > <MessageType>http://www.test123.com/PROTO-TEST-KDM-20040311#</MessageType>
> > <AnnotationText>TEST 123</AnnotationText>
> > <IssueDate>2006-01-30T21:31:32+00:00</IssueDate>
> > <Signer>
> >
> > <dsig:X509IssuerName>/dnQualifier=JIQs8tRZIGKLLlyGkKOqMLonGpw=/O=dc.Root.ca.test_rje_xp_laptop.com/OU=test
> > RJE_XP_LAPTOP/CN=TMS.Test.2A51FBD4-58C2-4955-82FE-8FB31C15C0F7.v0.2.3.0</dsig:X509IssuerName>
> > <dsig:X509SerialNumber>b5:c9:ac:0a:83:e2:ef:d4
> > </dsig:X509SerialNumber>
> > </Signer> <RequiredExtensions>
> > <Recipient>
> > <X509IssuerSerial>
> > <dsig:X509IssuerName/>
> > <dsig:X509SerialNumber/>
> > </X509IssuerSerial> <X509SubjectName/>
> > </Recipient>
> > <CompositionPlaylistId>urn:uuid:d2b7595e-f852-f246-8c74-3d9724f923a8</CompositionPlaylistId>
> > <ContentTitleText>StEM_MM_2k_XYZ_CRYPT</ContentTitleText>
> >
> > <ContentKeysNotValidBefore>2006-01-31T10:00:00+00:00</ContentKeysNotValidBefore>
> >
> > <ContentKeysNotValidAfter>2006-02-28T09:59:00+00:00</ContentKeysNotValidAfter>
> >
> >

May 11 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Willem Ligtenberg | last post by:
I decided to use SAX to parse my xml file. But the parser crashes on: File "/usr/lib/python2.3/site-packages/_xmlplus/sax/handler.py", line 38, in fatalError raise exception...
2
by: Cigdem | last post by:
Hello, I am trying to parse the XML files that the user selects(XML files are on anoher OS400 system called "wkdis3"). But i am permenantly getting that error: Directory0: \\wkdis3\ROOT\home...
3
by: Pir8 | last post by:
I have a complex xml file, which contains stories within a magazine. The structure of the xml file is as follows: <?xml version="1.0" encoding="ISO-8859-1" ?> <magazine> <story>...
1
by: Christoph Bisping | last post by:
Hello! Maybe someone is able to give me a little hint on this: I've written a vb.net app which is mainly an interpreter for specialized CAD/CAM files. These files mainly contain simple movement...
4
by: Rick Walsh | last post by:
I have an HTML table in the following format: <table> <tr><td>Header 1</td><td>Header 2</td></tr> <tr><td>1</td><td>2</td></tr> <tr><td>3</td><td>4</td></tr> <tr><td>5</td><td>6</td></tr>...
3
by: toton | last post by:
Hi, I have some ascii files, which are having some formatted text. I want to read some section only from the total file. For that what I am doing is indexing the sections (denoted by .START in...
9
by: Paulers | last post by:
Hello, I have a log file that contains many multi-line messages. What is the best approach to take for extracting data out of each message and populating object properties to be stored in an...
13
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple...
13
by: charliefortune | last post by:
I am fetching some product feeds with PHP like this $merch = substr($key,1); $feed = file_get_contents($_POST); $fp = fopen("./feeds/feed".$merch.".txt","w+"); fwrite ($fp,$feed); fclose...
2
by: Felipe De Bene | last post by:
I'm having problems parsing an HTML file with the following syntax : <TABLE cellspacing=0 cellpadding=0 ALIGN=CENTER BORDER=1 width='100%'> <TH BGCOLOR='#c0c0c0' Width='3%'>User ID</TH> <TH...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.