473,327 Members | 2,065 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,327 software developers and data experts.

Problems Reading XML File

Hi All,

I'm fairly new to XML, so I presume I'm doing something obviously dense
here, but here it goes. Below is an XML file that was extracted from a test
Windows Installer .MSP (patch) file using the MsiExtractPatchXMLData()
method and directly written to disk as a test. On the surface, it seems to
me to be valid XML since IE can load & display it.

<MsiPatch xmlns="http://www.microsoft.com/msi/patch_applicability.xsd"
SchemaVersion="1.0.0.0" PatchGUID="{2AAC52C8-0F60-481F-852D-116CDE7EBE0D}"
MinMsiVersion="3">
<TargetProduct MinMsiVersion="200">
<TargetProductCode
Validate="true">{C2E2F155-71DD-458A-966B-3C231CFB5E7D}</TargetProductCode>
<TargetVersion Validate="true" ComparisonType="LessThanOrEqual"
ComparisonFilter="MajorMinorUpdate">1.00.0000</TargetVersion>
<TargetLanguage Validate="false">1033</TargetLanguage>
<UpdatedLanguages>1033</UpdatedLanguages>
<UpgradeCode
Validate="true">{1C18A718-D408-4D74-B2C6-0F6A932CE841}</UpgradeCode>
</TargetProduct>
<TargetProductCode>{C2E2F155-71DD-458A-966B-3C231CFB5E7D}</TargetProductCode>
<SequenceData>
<PatchFamily>C2E2F15571DD458A966B3C231CFB5E7D</PatchFamily>
<Sequence>0.0.17219.55500</Sequence>
<Attributes>0</Attributes>
</SequenceData>
</MsiPatch>

Now that I can actually "see" the XML for testing purposes I want to extract
some information from it, but it always fails to get anything. For example,
what's funtionally wrong with the following code? It throws an exception:
"Object reference not set to an instance of an object." when it hits the
MessageBox.Show line. When I check the LocalName of xRoot, it correctly
shows "MsiPatch", but fails to get the xTargetProductNode, or any other
nodes below the root node. Using SelectNodes to get an XmlNodeList doesn't
work either. The only way I can seem to get the info is by looping through
the ChildNodes (and comparing their LocalNames to the tag I'm looking for)
instead of directly with a simple XPath. What am I doing wrong?

if(File.Exists(FileSpec) == true)
{
XmlDocument xDoc = new XmlDocument();
xDoc.Load(DEF_OUTPUT_FILENAME);
XmlNode xRoot = xDoc.DocumentElement;
XmlNode xTargetProductNode = xRoot.SelectSingleNode("TargetProduct");
//XmlNodeList xNodeList = xRoot.SelectNodes("TargetProduct"); ///Also fails
to find anything and the xNodeList.Count = 0;
MessageBox.Show(xTargetProductNode.LocalName);
}
else
{
MessageBox.Show("Unable to read file:" +
Environment.NewLine +
FileSpec);
}
Thanks in advance for the help,

--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> jo*********@thermo.com
Jan 16 '06 #1
7 1977
John,
Where's the declaration line? You go to have '<?xml version="1.0"
encoding="UTF-8"?>' at least, on the first line of the xml file to make it
for a valid.

thx
-jsh

"John Bowman jo*********@thermo.com>" wrote:
Hi All,

I'm fairly new to XML, so I presume I'm doing something obviously dense
here, but here it goes. Below is an XML file that was extracted from a test
Windows Installer .MSP (patch) file using the MsiExtractPatchXMLData()
method and directly written to disk as a test. On the surface, it seems to
me to be valid XML since IE can load & display it.

<MsiPatch xmlns="http://www.microsoft.com/msi/patch_applicability.xsd"
SchemaVersion="1.0.0.0" PatchGUID="{2AAC52C8-0F60-481F-852D-116CDE7EBE0D}"
MinMsiVersion="3">
<TargetProduct MinMsiVersion="200">
<TargetProductCode
Validate="true">{C2E2F155-71DD-458A-966B-3C231CFB5E7D}</TargetProductCode>
<TargetVersion Validate="true" ComparisonType="LessThanOrEqual"
ComparisonFilter="MajorMinorUpdate">1.00.0000</TargetVersion>
<TargetLanguage Validate="false">1033</TargetLanguage>
<UpdatedLanguages>1033</UpdatedLanguages>
<UpgradeCode
Validate="true">{1C18A718-D408-4D74-B2C6-0F6A932CE841}</UpgradeCode>
</TargetProduct>
<TargetProductCode>{C2E2F155-71DD-458A-966B-3C231CFB5E7D}</TargetProductCode>
<SequenceData>
<PatchFamily>C2E2F15571DD458A966B3C231CFB5E7D</PatchFamily>
<Sequence>0.0.17219.55500</Sequence>
<Attributes>0</Attributes>
</SequenceData>
</MsiPatch>

Now that I can actually "see" the XML for testing purposes I want to extract
some information from it, but it always fails to get anything. For example,
what's funtionally wrong with the following code? It throws an exception:
"Object reference not set to an instance of an object." when it hits the
MessageBox.Show line. When I check the LocalName of xRoot, it correctly
shows "MsiPatch", but fails to get the xTargetProductNode, or any other
nodes below the root node. Using SelectNodes to get an XmlNodeList doesn't
work either. The only way I can seem to get the info is by looping through
the ChildNodes (and comparing their LocalNames to the tag I'm looking for)
instead of directly with a simple XPath. What am I doing wrong?

if(File.Exists(FileSpec) == true)
{
XmlDocument xDoc = new XmlDocument();
xDoc.Load(DEF_OUTPUT_FILENAME);
XmlNode xRoot = xDoc.DocumentElement;
XmlNode xTargetProductNode = xRoot.SelectSingleNode("TargetProduct");
//XmlNodeList xNodeList = xRoot.SelectNodes("TargetProduct"); ///Also fails
to find anything and the xNodeList.Count = 0;
MessageBox.Show(xTargetProductNode.LocalName);
}
else
{
MessageBox.Show("Unable to read file:" +
Environment.NewLine +
FileSpec);
}
Thanks in advance for the help,

--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> jo*********@thermo.com

Jan 16 '06 #2
I'm not so sure about that. The line is certainly preferable, but a
well-formed XML document doesn't have to have that line.
"js********@hotmail.com" <js*****************@discussions.microsoft.com>
wrote in message news:F0**********************************@microsof t.com...
John,
Where's the declaration line? You go to have '<?xml version="1.0"
encoding="UTF-8"?>' at least, on the first line of the xml file to make it
for a valid.

thx
-jsh

"John Bowman jo*********@thermo.com>" wrote:
Hi All,

I'm fairly new to XML, so I presume I'm doing something obviously dense
here, but here it goes. Below is an XML file that was extracted from a
test
Windows Installer .MSP (patch) file using the MsiExtractPatchXMLData()
method and directly written to disk as a test. On the surface, it seems
to
me to be valid XML since IE can load & display it.

<MsiPatch xmlns="http://www.microsoft.com/msi/patch_applicability.xsd"
SchemaVersion="1.0.0.0"
PatchGUID="{2AAC52C8-0F60-481F-852D-116CDE7EBE0D}"
MinMsiVersion="3">
<TargetProduct MinMsiVersion="200">
<TargetProductCode
Validate="true">{C2E2F155-71DD-458A-966B-3C231CFB5E7D}</TargetProductCode>
<TargetVersion Validate="true" ComparisonType="LessThanOrEqual"
ComparisonFilter="MajorMinorUpdate">1.00.0000</TargetVersion>
<TargetLanguage Validate="false">1033</TargetLanguage>
<UpdatedLanguages>1033</UpdatedLanguages>
<UpgradeCode
Validate="true">{1C18A718-D408-4D74-B2C6-0F6A932CE841}</UpgradeCode>
</TargetProduct>

<TargetProductCode>{C2E2F155-71DD-458A-966B-3C231CFB5E7D}</TargetProductCode>
<SequenceData>
<PatchFamily>C2E2F15571DD458A966B3C231CFB5E7D</PatchFamily>
<Sequence>0.0.17219.55500</Sequence>
<Attributes>0</Attributes>
</SequenceData>
</MsiPatch>

Now that I can actually "see" the XML for testing purposes I want to
extract
some information from it, but it always fails to get anything. For
example,
what's funtionally wrong with the following code? It throws an exception:
"Object reference not set to an instance of an object." when it hits the
MessageBox.Show line. When I check the LocalName of xRoot, it correctly
shows "MsiPatch", but fails to get the xTargetProductNode, or any other
nodes below the root node. Using SelectNodes to get an XmlNodeList
doesn't
work either. The only way I can seem to get the info is by looping
through
the ChildNodes (and comparing their LocalNames to the tag I'm looking
for)
instead of directly with a simple XPath. What am I doing wrong?

if(File.Exists(FileSpec) == true)
{
XmlDocument xDoc = new XmlDocument();
xDoc.Load(DEF_OUTPUT_FILENAME);
XmlNode xRoot = xDoc.DocumentElement;
XmlNode xTargetProductNode = xRoot.SelectSingleNode("TargetProduct");
//XmlNodeList xNodeList = xRoot.SelectNodes("TargetProduct"); ///Also
fails
to find anything and the xNodeList.Count = 0;
MessageBox.Show(xTargetProductNode.LocalName);
}
else
{
MessageBox.Show("Unable to read file:" +
Environment.NewLine +
FileSpec);
}
Thanks in advance for the help,

--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> jo*********@thermo.com

Jan 16 '06 #3


John Bowman < wrote:

<MsiPatch xmlns="http://www.microsoft.com/msi/patch_applicability.xsd"
SchemaVersion="1.0.0.0" PatchGUID="{2AAC52C8-0F60-481F-852D-116CDE7EBE0D}"
MinMsiVersion="3">
<TargetProduct MinMsiVersion="200"> Now that I can actually "see" the XML for testing purposes I want to extract
some information from it, but it always fails to get anything. F if(File.Exists(FileSpec) == true)
{
XmlDocument xDoc = new XmlDocument();
xDoc.Load(DEF_OUTPUT_FILENAME);
XmlNode xRoot = xDoc.DocumentElement;
XmlNode xTargetProductNode = xRoot.SelectSingleNode("TargetProduct");


The super XPath FAQ, finding elements in the default namespace:
<http://www.faqts.com/knowledge_base/view.phtml/aid/34022/fid/616>
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jan 16 '06 #4
Scott,

I think I have to agree with you on this one. I did not create the XML, MS
did via the API call. Simply writing the text to a disk file, as is,
resulted in the XML I posted. I just couldn't figure out how to get it to
retreive the requested node(s) correctly. Based on the Martin's reply (see
next thread message), I think I'll be able to solve it when I implement
handling the namespace using an XmlNamespaceManager.

Thanks,

John

"Scott M." <s-***@nospam.nospam> wrote in message
news:ep**************@TK2MSFTNGP09.phx.gbl...
I'm not so sure about that. The line is certainly preferable, but a
well-formed XML document doesn't have to have that line.
"js********@hotmail.com" <js*****************@discussions.microsoft.com>
wrote in message
news:F0**********************************@microsof t.com...
John,
Where's the declaration line? You go to have '<?xml version="1.0"
encoding="UTF-8"?>' at least, on the first line of the xml file to make
it
for a valid.

thx
-jsh

"John Bowman jo*********@thermo.com>" wrote:
Hi All,

I'm fairly new to XML, so I presume I'm doing something obviously dense
here, but here it goes. Below is an XML file that was extracted from a
test
Windows Installer .MSP (patch) file using the MsiExtractPatchXMLData()
method and directly written to disk as a test. On the surface, it seems
to
me to be valid XML since IE can load & display it.

<MsiPatch xmlns="http://www.microsoft.com/msi/patch_applicability.xsd"
SchemaVersion="1.0.0.0"
PatchGUID="{2AAC52C8-0F60-481F-852D-116CDE7EBE0D}"
MinMsiVersion="3">
<TargetProduct MinMsiVersion="200">
<TargetProductCode
Validate="true">{C2E2F155-71DD-458A-966B-3C231CFB5E7D}</TargetProductCode>
<TargetVersion Validate="true" ComparisonType="LessThanOrEqual"
ComparisonFilter="MajorMinorUpdate">1.00.0000</TargetVersion>
<TargetLanguage Validate="false">1033</TargetLanguage>
<UpdatedLanguages>1033</UpdatedLanguages>
<UpgradeCode
Validate="true">{1C18A718-D408-4D74-B2C6-0F6A932CE841}</UpgradeCode>
</TargetProduct>

<TargetProductCode>{C2E2F155-71DD-458A-966B-3C231CFB5E7D}</TargetProductCode>
<SequenceData>
<PatchFamily>C2E2F15571DD458A966B3C231CFB5E7D</PatchFamily>
<Sequence>0.0.17219.55500</Sequence>
<Attributes>0</Attributes>
</SequenceData>
</MsiPatch>

Now that I can actually "see" the XML for testing purposes I want to
extract
some information from it, but it always fails to get anything. For
example,
what's funtionally wrong with the following code? It throws an
exception:
"Object reference not set to an instance of an object." when it hits the
MessageBox.Show line. When I check the LocalName of xRoot, it correctly
shows "MsiPatch", but fails to get the xTargetProductNode, or any other
nodes below the root node. Using SelectNodes to get an XmlNodeList
doesn't
work either. The only way I can seem to get the info is by looping
through
the ChildNodes (and comparing their LocalNames to the tag I'm looking
for)
instead of directly with a simple XPath. What am I doing wrong?

if(File.Exists(FileSpec) == true)
{
XmlDocument xDoc = new XmlDocument();
xDoc.Load(DEF_OUTPUT_FILENAME);
XmlNode xRoot = xDoc.DocumentElement;
XmlNode xTargetProductNode = xRoot.SelectSingleNode("TargetProduct");
//XmlNodeList xNodeList = xRoot.SelectNodes("TargetProduct"); ///Also
fails
to find anything and the xNodeList.Count = 0;
MessageBox.Show(xTargetProductNode.LocalName);
}
else
{
MessageBox.Show("Unable to read file:" +
Environment.NewLine +
FileSpec);
}
Thanks in advance for the help,

--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> jo*********@thermo.com


Jan 16 '06 #5
Martin, et al,

Thanks for the help. I think this link appears to contain the solution.

John

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:e%****************@TK2MSFTNGP09.phx.gbl...


John Bowman < wrote:

<MsiPatch xmlns="http://www.microsoft.com/msi/patch_applicability.xsd"
SchemaVersion="1.0.0.0"
PatchGUID="{2AAC52C8-0F60-481F-852D-116CDE7EBE0D}" MinMsiVersion="3">
<TargetProduct MinMsiVersion="200">

Now that I can actually "see" the XML for testing purposes I want to
extract some information from it, but it always fails to get anything. F

if(File.Exists(FileSpec) == true)
{
XmlDocument xDoc = new XmlDocument();
xDoc.Load(DEF_OUTPUT_FILENAME);
XmlNode xRoot = xDoc.DocumentElement;
XmlNode xTargetProductNode = xRoot.SelectSingleNode("TargetProduct");


The super XPath FAQ, finding elements in the default namespace:
<http://www.faqts.com/knowledge_base/view.phtml/aid/34022/fid/616>
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/

Jan 16 '06 #6
Hi,

I think your problem can be solved by using an XmlNamespaceManager on your
calls to SelectSingleNode and SelectNodes
Even when the nodes you are searching for are in the default namespace, you
still need a prefix, and whenever you use a prefix in an XPath expression,
you need an XmlNamespaceManager.
(See class XmlNamespaceManager.AddNamespace in VS help for a description)

XmlNamespaceManager nsmgr = new XmlNamespaceManager(xDoc .NameTable);
// Create a namespace manager
nsmgr.AddNamespace("default", http://www.microsoft.com/msi/patch);
// Add the default namespace with a prefix of "default"; could be any
character string e.g. "aa"

XmlNode xTargetProductNode =
xRoot.SelectSingleNode("default:TargetProduct", nsmgr); // Use the
prefix in the XPath expression and pass the namespace manager
XmlNodeList xNodeList = xRoot.SelectNodes("default:TargetProduct",
nsmgr); // Use the prefix in the XPath expression and
pass the namespace manager

Regards
"John Bowman jo*********@thermo.com>" <<Remove this before reply> wrote in
message news:u$*************@TK2MSFTNGP14.phx.gbl...
Hi All,

I'm fairly new to XML, so I presume I'm doing something obviously dense
here, but here it goes. Below is an XML file that was extracted from a
test Windows Installer .MSP (patch) file using the
MsiExtractPatchXMLData() method and directly written to disk as a test. On
the surface, it seems to me to be valid XML since IE can load & display
it.

<MsiPatch xmlns="http://www.microsoft.com/msi/patch_applicability.xsd"
SchemaVersion="1.0.0.0" PatchGUID="{2AAC52C8-0F60-481F-852D-116CDE7EBE0D}"
MinMsiVersion="3">
<TargetProduct MinMsiVersion="200">
<TargetProductCode
Validate="true">{C2E2F155-71DD-458A-966B-3C231CFB5E7D}</TargetProductCode>
<TargetVersion Validate="true" ComparisonType="LessThanOrEqual"
ComparisonFilter="MajorMinorUpdate">1.00.0000</TargetVersion>
<TargetLanguage Validate="false">1033</TargetLanguage>
<UpdatedLanguages>1033</UpdatedLanguages>
<UpgradeCode
Validate="true">{1C18A718-D408-4D74-B2C6-0F6A932CE841}</UpgradeCode>
</TargetProduct>

<TargetProductCode>{C2E2F155-71DD-458A-966B-3C231CFB5E7D}</TargetProductCode>
<SequenceData>
<PatchFamily>C2E2F15571DD458A966B3C231CFB5E7D</PatchFamily>
<Sequence>0.0.17219.55500</Sequence>
<Attributes>0</Attributes>
</SequenceData>
</MsiPatch>

Now that I can actually "see" the XML for testing purposes I want to
extract some information from it, but it always fails to get anything. For
example, what's funtionally wrong with the following code? It throws an
exception: "Object reference not set to an instance of an object." when it
hits the MessageBox.Show line. When I check the LocalName of xRoot, it
correctly shows "MsiPatch", but fails to get the xTargetProductNode, or
any other nodes below the root node. Using SelectNodes to get an
XmlNodeList doesn't work either. The only way I can seem to get the info
is by looping through the ChildNodes (and comparing their LocalNames to
the tag I'm looking for) instead of directly with a simple XPath. What am
I doing wrong?

if(File.Exists(FileSpec) == true)
{
XmlDocument xDoc = new XmlDocument();
xDoc.Load(DEF_OUTPUT_FILENAME);
XmlNode xRoot = xDoc.DocumentElement;
XmlNode xTargetProductNode = xRoot.SelectSingleNode("TargetProduct");
//XmlNodeList xNodeList = xRoot.SelectNodes("TargetProduct"); ///Also
fails to find anything and the xNodeList.Count = 0;
MessageBox.Show(xTargetProductNode.LocalName);
}
else
{
MessageBox.Show("Unable to read file:" +
Environment.NewLine +
FileSpec);
}
Thanks in advance for the help,

--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> jo*********@thermo.com

Jan 17 '06 #7
KDOR,

Thanks. Between your help & Martin's before you, I managed to make it work.

Take care,

John
"KDOR" <KD**@newsgroups.nospam> wrote in message
news:OK**************@TK2MSFTNGP12.phx.gbl...
Hi,

I think your problem can be solved by using an XmlNamespaceManager on your
calls to SelectSingleNode and SelectNodes
Even when the nodes you are searching for are in the default namespace,
you still need a prefix, and whenever you use a prefix in an XPath
expression, you need an XmlNamespaceManager.
(See class XmlNamespaceManager.AddNamespace in VS help for a description)

XmlNamespaceManager nsmgr = new XmlNamespaceManager(xDoc .NameTable);
// Create a namespace manager
nsmgr.AddNamespace("default", http://www.microsoft.com/msi/patch); //
Add the default namespace with a prefix of "default"; could be any
character string e.g. "aa"

XmlNode xTargetProductNode =
xRoot.SelectSingleNode("default:TargetProduct", nsmgr); // Use the
prefix in the XPath expression and pass the namespace manager
XmlNodeList xNodeList = xRoot.SelectNodes("default:TargetProduct",
nsmgr); // Use the prefix in the XPath expression
and pass the namespace manager

Regards
"John Bowman jo*********@thermo.com>" <<Remove this before reply> wrote in
message news:u$*************@TK2MSFTNGP14.phx.gbl...
Hi All,

I'm fairly new to XML, so I presume I'm doing something obviously dense
here, but here it goes. Below is an XML file that was extracted from a
test Windows Installer .MSP (patch) file using the
MsiExtractPatchXMLData() method and directly written to disk as a test.
On the surface, it seems to me to be valid XML since IE can load &
display it.

<MsiPatch xmlns="http://www.microsoft.com/msi/patch_applicability.xsd"
SchemaVersion="1.0.0.0"
PatchGUID="{2AAC52C8-0F60-481F-852D-116CDE7EBE0D}" MinMsiVersion="3">
<TargetProduct MinMsiVersion="200">
<TargetProductCode
Validate="true">{C2E2F155-71DD-458A-966B-3C231CFB5E7D}</TargetProductCode>
<TargetVersion Validate="true" ComparisonType="LessThanOrEqual"
ComparisonFilter="MajorMinorUpdate">1.00.0000</TargetVersion>
<TargetLanguage Validate="false">1033</TargetLanguage>
<UpdatedLanguages>1033</UpdatedLanguages>
<UpgradeCode
Validate="true">{1C18A718-D408-4D74-B2C6-0F6A932CE841}</UpgradeCode>
</TargetProduct>

<TargetProductCode>{C2E2F155-71DD-458A-966B-3C231CFB5E7D}</TargetProductCode>
<SequenceData>
<PatchFamily>C2E2F15571DD458A966B3C231CFB5E7D</PatchFamily>
<Sequence>0.0.17219.55500</Sequence>
<Attributes>0</Attributes>
</SequenceData>
</MsiPatch>

Now that I can actually "see" the XML for testing purposes I want to
extract some information from it, but it always fails to get anything.
For example, what's funtionally wrong with the following code? It throws
an exception: "Object reference not set to an instance of an object."
when it hits the MessageBox.Show line. When I check the LocalName of
xRoot, it correctly shows "MsiPatch", but fails to get the
xTargetProductNode, or any other nodes below the root node. Using
SelectNodes to get an XmlNodeList doesn't work either. The only way I can
seem to get the info is by looping through the ChildNodes (and comparing
their LocalNames to the tag I'm looking for) instead of directly with a
simple XPath. What am I doing wrong?

if(File.Exists(FileSpec) == true)
{
XmlDocument xDoc = new XmlDocument();
xDoc.Load(DEF_OUTPUT_FILENAME);
XmlNode xRoot = xDoc.DocumentElement;
XmlNode xTargetProductNode = xRoot.SelectSingleNode("TargetProduct");
//XmlNodeList xNodeList = xRoot.SelectNodes("TargetProduct"); ///Also
fails to find anything and the xNodeList.Count = 0;
MessageBox.Show(xTargetProductNode.LocalName);
}
else
{
MessageBox.Show("Unable to read file:" +
Environment.NewLine +
FileSpec);
}
Thanks in advance for the help,

--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> jo*********@thermo.com


Jan 17 '06 #8

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

Similar topics

2
by: Keegan Alex | last post by:
Hi folks, I downloaded PHP-Nuke 6.7, and after reading the INSTALL file, it looks very simple... but either i'm reading them wrong or they're very flawed. First, it says: Untar the package...
6
by: Sara Khalatbari | last post by:
Dear friends In a code, I'm opening a file to read. Like : lines = open(filename).readlines() & I'm never closing it. I'm not writing in that file, I just read it. Will it cause any problems...
2
by: jfixsen | last post by:
Hello! Oracle 9.2.0.4 SunOS pchi-db01 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-EnterpriseSystem = SunOS Node = pchi-db01 Release = 5.8 KernelID = Generic_108528-19 Machine = sun4u...
4
by: hall | last post by:
Hi. I ran across a bug in one of my problems and after spending some time tracking it down i found that the problem arose in a piece of code that essentially did this: ----------- ifstream...
1
by: Need Helps | last post by:
Hello. I'm writing an application that writes to a file a month, day, year, number of comments, then some strings for the comments. So the format for each record would look like:...
4
by: Jonathan [sbrodolo] | last post by:
Hi there, I am using a LOTUS/DOMINO Web Service in my ASP.Net application and I am having quite a lot of problems. I have managed to solve most of them but this one it really is giving me terrible...
9
by: Sheldon | last post by:
Good day Everyone, I am a still very new at learning C and I have thrown myself in the deep end. I started with a simple program and kept widening the scope. This has taught me many things about...
2
by: patrickdepinguin | last post by:
Hi, I use zlib to write data structures to a compressed file, using the gzwrite function. Afterwards I read the data back with gzread. I notice that this works well when the data written is not...
3
by: katz911 | last post by:
Hello, I've encountered a strange problem which I can't seem to explain. I've written a simple C++ class that deals with a certian binary file. In one of the methods there, I wish to update a...
12
by: xamdam | last post by:
Hi fellas, I am experiencing problems reading a 2GB zipfile consisting of multiple zipped files. I found a thread http://mail.python.org/pipermail/python-dev/2005-April/053027.html that mentions...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.