XMLReader - nodes not found

Task: To Read an XML document and handle data contents in .NET for new
processing

Request: Any details on how to read an XML document processing all
nodes and content in .NET

Problems: Duplicate DATA tags, end nodes (ley01) and then data lower
down, system loses its positions

My Experience: Handling XML/HTML via Transforms, writing XML using
..NET, but not reading

SAmple Code:

XmlTextReader reader = new XmlTextReader(("0102020200_rei_uk.xml"));
			XmlDocument xmlDoc = new XmlDocument();
			//reader.WhitespaceHandling=WhitespaceHandling.None;
			//xmlDoc.Load(reader);
			while (reader.Read())
			{

				if (reader.NodeType == XmlNodeType.Element)
				{

					switch (reader.LocalName)
					{

						//case "ROW":
							//string thisC=reader.Value;
					//string thisC = reader.ReadElementString();
						//	builder.Append( getData(reader));
						//	break;
						case "tx_name":
							//string thisC=reader.Value;
							//string thisC = reader.ReadElementString();
							//reader.MoveToContent();
							builder.Append(reader.Value.ToString());
							break;
					}
				}

			}
			//XmlNodeList requestNodeList = xmlDoc.SelectNodes("//request");
			//lblXML.Text = requestNodeList.Count.ToString();
			//DisplayChildElements(xmlDoc.DocumentElement, false);
			if (builder.Length>0)
			{
				lblXML.Text=builder.ToString();
			}
			else
			{
				lblXML.Text="no xml data";
			}


		}
		public string getData(XmlReader reader1)
		{
			StringBuilder thisPN  = new StringBuilder();
			while(reader1.Read()  )
			{
					switch (reader1.Name)
						{

							case "img_name":
								thisPN.Append(getImageName(reader1));
								break;

						}

				if (reader1.NodeType==XmlNodeType.Element ||
					reader1.NodeType==XmlNodeType.Whitespace)
				{
					switch (reader1.Name)
					{
						case "tx_name":
							thisPN.Append(reader1.ReadString());
							break;


					}
				}

			}
			return thisPN.ToString();
		}

		public string getImageName(XmlReader reader1)
		{
			StringBuilder thisPN  = new StringBuilder();
			while(reader1.Read()  )
			{
				if (reader1.NodeType==XmlNodeType.Element ||
					reader1.NodeType==XmlNodeType.Whitespace)
				{
					switch (reader1.Name)
					{
						case "DATA":
							thisPN.Append(reader1.ReadString());
							break;

					}
				}

			}
			return thisPN.ToString();
		}




	}
}


Sample XML Document - cannot be changed, 500 docs in total:

 <?xml version="1.0" encoding="UTF-8" ?>
- <FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
  <ERRORCODE>0</ERRORCODE>
  <DATABASE>CAT_ROCA.FP5</DATABASE>
  <LAYOUT />
- <ROW MODID="56" RECORDID="12619892">
  <Cat_ID>UK00155</Cat_ID>
  <ITEM_id>0604011800</ITEM_id>
  <ITEM_ref>801460..4</ITEM_ref>
  <orden_grupo>1</orden_grupo>
  <tx_name>GIRALDA</tx_name>
  <tx_desc>Seat and cover in lacquered heat-hardened resin, with
stainless steel hinges.</tx_desc>
  <tx_ley01 />
  <tx_ley02 />
  <tx_ley03 />
  <tx_ley05>GIRALDA</tx_ley05>
  <tx_ley04>Seat and cover</tx_ley04>
  <tx_com01 />
  <tx_com02 />
  <tx_com03>In the product number replace (..) with the code for the
chosen colour.</tx_com03>
  <tx_com04 />
  <tx_com05 />
  <tx_opc />
- <img_name>
  <DATA>801460004.jpg</DATA>
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  </img_name>
  <Flag_esquemas>0</Flag_esquemas>
  <esq_files />
- <esq_strings>
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  </esq_strings>
  <flag_acabados>0</flag_acabados>
  <bodegon_acabados />
  <acabados.string_acabados />
  <flag_colores>1</flag_colores>
  <colors>1|1|1|1||||||||||</colors>
  <colors_maxiclean />
  <flag_homologaciones />
  <homo.string_mosaico />
  <print>1|0|0|0</print>
  <print_ficha>|0|0|0</print_ficha>
  <print_pdf />
  </ROW>
- <ROW MODID="77" RECORDID="12621622">
  <Cat_ID>rei0311034</Cat_ID>
  <ITEM_id>0604011800</ITEM_id>
  <ITEM_ref>801462004</ITEM_ref>
  <orden_grupo>2</orden_grupo>
  <tx_name>GIRALDA</tx_name>
  <tx_desc>Soft close seat and cover in lacquered heat-hardened resin,
with stainless steel hinges.</tx_desc>
  <tx_ley01 />
  <tx_ley02 />
  <tx_ley03 />
  <tx_ley05 />
  <tx_ley04>Soft close seat and cover</tx_ley04>
  <tx_com01 />
  <tx_com02 />
  <tx_com03 />
  <tx_com04 />
  <tx_com05 />
  <tx_opc />
- <img_name>
  <DATA>801462xx0.jpg</DATA>
  <DATA>caida_tapas.jpg</DATA>
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  </img_name>
  <Flag_esquemas>0</Flag_esquemas>
  <esq_files>801462004.swf</esq_files>
- <esq_strings>
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  <DATA />
  </esq_strings>
  <flag_acabados>0</flag_acabados>
  <bodegon_acabados />
  <acabados.string_acabados />
  <flag_colores>1</flag_colores>
  <colors>1|||||||||||||</colors>
  <colors_maxiclean />
  <flag_homologaciones />
  <homo.string_mosaico />
  <print>1|0|0|0</print>
  <print_ficha>|0|0|0</print_ficha>
  <print_pdf /> 
  </ROW>
  </FMPDSORESULT>

0
sales6518 (7)
8/14/2005 7:45:53 AM
dotnet.xml 7266 articles. 0 followers. Follow

1 Replies
562 Views

Similar Articles

[PageSpeed] 57

Well it depends on the type of processing you need to do.  Here's an example 
that uses the XmlReader to cache up your row data into an object which you 
so you can then process a row at a time.

using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Collections;
class Program {

    static void Main(string[] args) {
        new Program().Run();
    }

    void Run() {
        XmlTextReader reader = new 
XmlTextReader(("..\\..\\0102020200_rei_uk.xml"));
        while (reader.Read()) {
            if (reader.NodeType == XmlNodeType.Element) {
                switch (reader.LocalName) {
                    case "ERRORCODE":
                        break;
                    case "DATABASE":
                        break;
                    case "LAYOUT":
                        break;
                    case "ROW":
                        Row row = Row.ReadRow(reader);
                        //ProcessRow(row);
                        break;
                }
            }
        }
    }
}
class Row {
    string catId;
    string itemId;
    string otemRef;
    string ordenGrupo;
    string txName;
    string txDesc;
    string tx_ley01;
    string tx_ley02;
    string tx_ley03;
    string tx_ley04;
    string tx_ley05;
    string tx_com01;
    string tx_com02;
    string tx_com03;
    string tx_com04;
    string tx_com05;
    string tx_opc;
    string[] images;
    string flag_esquemas;
    string esq_files;
    string[] esq_strings;
    string flag_acabados;
    string bodegon_acabados;
    string acabados;
    string flag_colores;
    string colors;
    string colors_maxiclean;
    string flag_homologaciones;
    string homo_string_mosaico;
    string print;
    string print_ficha;
    string print_pdf;

    public static Row ReadRow(XmlReader reader) {
        Row row = new Row();
        while (reader.Read()) {
            if (reader.NodeType == XmlNodeType.Element) {
                switch (reader.Name) {
                    case "Cat_ID":
                        row.catId = reader.ReadString();
                        break;
                    case "ITEM_id":
                        row.itemId = reader.ReadString();
                        break;
                    case "ITEM_ref":
                        row.otemRef = reader.ReadString();
                        break;
                    case "orden_grupo":
                        row.ordenGrupo = reader.ReadString();
                        break;
                    case "tx_name":
                        row.txName = reader.ReadString();
                        break;
                    case "tx_desc":
                        row.txDesc= reader.ReadString();
                        break;
                    case "tx_ley01":
                        row.tx_ley01 = reader.ReadString();
                        break;
                    case "tx_ley02":
                        row.tx_ley02 = reader.ReadString();
                        break;
                    case "tx_ley03":
                        row.tx_ley03 = reader.ReadString();
                        break;
                    case "tx_ley04":
                        row.tx_ley04 = reader.ReadString();
                        break;
                    case "tx_ley05":
                        row.tx_ley05 = reader.ReadString();
                        break;
                    case "tx_com01":
                        row.tx_com01 = reader.ReadString();
                        break;
                    case "tx_com02":
                        row.tx_com02 = reader.ReadString();
                        break;
                    case "tx_com03":
                        row.tx_com03 = reader.ReadString();
                        break;
                    case "tx_com04":
                        row.tx_com04 = reader.ReadString();
                        break;
                    case "tx_com05":
                        row.tx_com05 = reader.ReadString();
                        break;
                    case "tx_opc":
                        row.tx_opc = reader.ReadString();
                        break;
                    case "img_name":
                        row.images = ReadData(reader);
                        break;
                    case "Flag_esquemas":
                        row.flag_esquemas = reader.ReadString();
                        break;
                    case "esq_files":
                        row.esq_files = reader.ReadString();
                        break;
                    case "esq_strings":
                        row.esq_strings = ReadData(reader);
                        break;
                    case "flag_acabados":
                        row.flag_acabados = reader.ReadString();
                        break;
                    case "bodegon_acabados":
                        row.bodegon_acabados = reader.ReadString();
                        break;
                    case "acabados.string_acabados":
                        row.acabados = reader.ReadString();
                        break;
                    case "flag_colores":
                        row.flag_colores = reader.ReadString();
                        break;
                    case "colors":
                        row.colors = reader.ReadString();
                        break;
                    case "colors_maxiclean":
                        row.colors_maxiclean = reader.ReadString();
                        break;
                    case "flag_homologaciones":
                        row.flag_homologaciones = reader.ReadString();
                        break;
                    case "homo.string_mosaico":
                        row.homo_string_mosaico = reader.ReadString();
                        break;
                    case "print":
                        row.print = reader.ReadString();
                        break;
                    case "print_ficha":
                        row.print_ficha = reader.ReadString();
                        break;
                    case "print_pdf":
                        row.print_pdf = reader.ReadString();
                        break;
                }
            } else if (reader.NodeType == XmlNodeType.EndElement) {
                break;
            }
        }
        return row;
    }

    static string[] ReadData(XmlReader reader) {
        ArrayList list = new ArrayList();
        while (reader.Read()) {
            if (reader.NodeType == XmlNodeType.Element) {
                switch (reader.Name) {
                    case "DATA":
                        list.Add(reader.ReadString());
                        break;

                }
            } else if (reader.NodeType == XmlNodeType.EndElement) {
                break;
            }

        }
        return (string[])list.ToArray(typeof(string));
    }

}


"Logician" <sales@logicians.com> wrote in message 
news:1124005553.107560.268330@o13g2000cwo.googlegroups.com...
> Task: To Read an XML document and handle data contents in .NET for new
> processing
>
> Request: Any details on how to read an XML document processing all
> nodes and content in .NET
>
> Problems: Duplicate DATA tags, end nodes (ley01) and then data lower
> down, system loses its positions
>
> My Experience: Handling XML/HTML via Transforms, writing XML using
> .NET, but not reading
>
> SAmple Code:
>
> XmlTextReader reader = new XmlTextReader(("0102020200_rei_uk.xml"));
> XmlDocument xmlDoc = new XmlDocument();
> //reader.WhitespaceHandling=WhitespaceHandling.None;
> //xmlDoc.Load(reader);
> while (reader.Read())
> {
>
> if (reader.NodeType == XmlNodeType.Element)
> {
>
> switch (reader.LocalName)
> {
>
> //case "ROW":
> //string thisC=reader.Value;
> //string thisC = reader.ReadElementString();
> // builder.Append( getData(reader));
> // break;
> case "tx_name":
> //string thisC=reader.Value;
> //string thisC = reader.ReadElementString();
> //reader.MoveToContent();
> builder.Append(reader.Value.ToString());
> break;
> }
> }
>
> }
> //XmlNodeList requestNodeList = xmlDoc.SelectNodes("//request");
> //lblXML.Text = requestNodeList.Count.ToString();
> //DisplayChildElements(xmlDoc.DocumentElement, false);
> if (builder.Length>0)
> {
> lblXML.Text=builder.ToString();
> }
> else
> {
> lblXML.Text="no xml data";
> }
>
>
> }
> public string getData(XmlReader reader1)
> {
> StringBuilder thisPN  = new StringBuilder();
> while(reader1.Read()  )
> {
> switch (reader1.Name)
> {
>
> case "img_name":
> thisPN.Append(getImageName(reader1));
> break;
>
> }
>
> if (reader1.NodeType==XmlNodeType.Element ||
> reader1.NodeType==XmlNodeType.Whitespace)
> {
> switch (reader1.Name)
> {
> case "tx_name":
> thisPN.Append(reader1.ReadString());
> break;
>
>
> }
> }
>
> }
> return thisPN.ToString();
> }
>
> public string getImageName(XmlReader reader1)
> {
> StringBuilder thisPN  = new StringBuilder();
> while(reader1.Read()  )
> {
> if (reader1.NodeType==XmlNodeType.Element ||
> reader1.NodeType==XmlNodeType.Whitespace)
> {
> switch (reader1.Name)
> {
> case "DATA":
> thisPN.Append(reader1.ReadString());
> break;
>
> }
> }
>
> }
> return thisPN.ToString();
> }
>
>
>
>
> }
> }
>
>
> Sample XML Document - cannot be changed, 500 docs in total:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> - <FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult">
>  <ERRORCODE>0</ERRORCODE>
>  <DATABASE>CAT_ROCA.FP5</DATABASE>
>  <LAYOUT />
> - <ROW MODID="56" RECORDID="12619892">
>  <Cat_ID>UK00155</Cat_ID>
>  <ITEM_id>0604011800</ITEM_id>
>  <ITEM_ref>801460..4</ITEM_ref>
>  <orden_grupo>1</orden_grupo>
>  <tx_name>GIRALDA</tx_name>
>  <tx_desc>Seat and cover in lacquered heat-hardened resin, with
> stainless steel hinges.</tx_desc>
>  <tx_ley01 />
>  <tx_ley02 />
>  <tx_ley03 />
>  <tx_ley05>GIRALDA</tx_ley05>
>  <tx_ley04>Seat and cover</tx_ley04>
>  <tx_com01 />
>  <tx_com02 />
>  <tx_com03>In the product number replace (..) with the code for the
> chosen colour.</tx_com03>
>  <tx_com04 />
>  <tx_com05 />
>  <tx_opc />
> - <img_name>
>  <DATA>801460004.jpg</DATA>
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  </img_name>
>  <Flag_esquemas>0</Flag_esquemas>
>  <esq_files />
> - <esq_strings>
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  </esq_strings>
>  <flag_acabados>0</flag_acabados>
>  <bodegon_acabados />
>  <acabados.string_acabados />
>  <flag_colores>1</flag_colores>
>  <colors>1|1|1|1||||||||||</colors>
>  <colors_maxiclean />
>  <flag_homologaciones />
>  <homo.string_mosaico />
>  <print>1|0|0|0</print>
>  <print_ficha>|0|0|0</print_ficha>
>  <print_pdf />
>  </ROW>
> - <ROW MODID="77" RECORDID="12621622">
>  <Cat_ID>rei0311034</Cat_ID>
>  <ITEM_id>0604011800</ITEM_id>
>  <ITEM_ref>801462004</ITEM_ref>
>  <orden_grupo>2</orden_grupo>
>  <tx_name>GIRALDA</tx_name>
>  <tx_desc>Soft close seat and cover in lacquered heat-hardened resin,
> with stainless steel hinges.</tx_desc>
>  <tx_ley01 />
>  <tx_ley02 />
>  <tx_ley03 />
>  <tx_ley05 />
>  <tx_ley04>Soft close seat and cover</tx_ley04>
>  <tx_com01 />
>  <tx_com02 />
>  <tx_com03 />
>  <tx_com04 />
>  <tx_com05 />
>  <tx_opc />
> - <img_name>
>  <DATA>801462xx0.jpg</DATA>
>  <DATA>caida_tapas.jpg</DATA>
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  </img_name>
>  <Flag_esquemas>0</Flag_esquemas>
>  <esq_files>801462004.swf</esq_files>
> - <esq_strings>
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  <DATA />
>  </esq_strings>
>  <flag_acabados>0</flag_acabados>
>  <bodegon_acabados />
>  <acabados.string_acabados />
>  <flag_colores>1</flag_colores>
>  <colors>1|||||||||||||</colors>
>  <colors_maxiclean />
>  <flag_homologaciones />
>  <homo.string_mosaico />
>  <print>1|0|0|0</print>
>  <print_ficha>|0|0|0</print_ficha>
>  <print_pdf />
>  </ROW>
>  </FMPDSORESULT>
> 


0
8/15/2005 12:48:09 AM
Reply:

Similar Artilces:

XMLREADER
If I run the following code :- XmlReader rdr = dal.Getxxxx rdr.MoveToContent(); string xmlstring = rdr.ReadOuterXml(); how can I load the string back to a XPathDocument or a XPathNavigator. hmm does anyone know ? David Price david wrote: > If I run the following code :- > > XmlReader rdr = dal.Getxxxx > rdr.MoveToContent(); > string xmlstring = rdr.ReadOuterXml(); > > how can I load the string back to a XPathDocument or a XPathNavigator. hmm > does anyone know ? XPathDocument doc = new XPathDocument(new StringReader(xmlstring)); -- Oleg Tkachenko [XML MVP] h...

Looping through XMLReader skips records
Hi: When I try and loop through the reader using any of the Read methods, I never get the five records returned that I expect. On the SQL Query Analyzer end, my query returns 5 results. Using the code below and the various Read methods, I get 3 and sometimes four values when Debugging. What does this mean? ---------------------------------------------------------------------------- - Dim reader As XmlTextReader reader = objCmd.ExecuteXmlReader Response.Write(reader.ReadState) While (reader.Read) Response.Write(reader.ReadString) End While reader.Close() -----------------------...

vftable not found when __declspec(dllimport) used
I have class RTRTwrapper implementing an abstract class PluginInterface with pure virtual functions. This is a DLL project so RTRTwrapper is declared as class __declspec(dllimport) RTRTwrapper : public PluginInterface When building, I get Error 53 error LNK2019: unresolved external symbol "__declspec(dllimport) const RTRTwrapper::`vftable'" (__imp_??_7RTRTwrapper@@6B@) referenced in function "public: __thiscall RTRTwrapper::RTRTwrapper(void)" (??0RTRTwrapper@@QAE@XZ) RTRTwrapper.obj Moreover, I get alot of: 2>..\..\RTRT_dll\RTRTwrapper.cc(42) : warning C427...

File Not Found: VBA6.DLL
Everytime I open/close EXCEL (Microsoft Office 2000 Premium), I get the following message: FILE NOT FOUND: VBA6.DLL I did a search on the HD for this file. I did not find that specific DLL file. I do have the following sub-directories: C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6 Where can I get this DLL file and what directory should it go in? Thanks, Les ...

i want to kill xmlreader and all her children #2
please reply via email to this post to x0td0x@hotmail.com i need some code that will generate code to read the xml file it is reading for example input: <book> <bk:title>the wind</bk:title> <bk:content type="text">howl</bk:content> </book>output: (xtw=xmltextwriter) [code:1:b5cc48202f]xtw.WriteStartElement("book"); xtw.WriteStartElement("bk:title"); xtw.WriteString("the wind"); xtw.WriteEndElement(); xtw.WriteStartElement("bk:content"); xtw.WriteAttributeString("type","text"); xtw.WriteSt...

idata section in PE file not found
hi! though analyzing an exe file that uses several dlls and imported functions i am not able to find a idata section within the file. is there any other way to determine which dlls are used by the exe file programatically? thanks, philipp Phillip, take a look at my answer re: writing a custom debugger for your original post on 9 July 2004. While this may sound difficult its not too bad, just a bit time consuming. But before you embark on this, check out the privileges needed to debug a process - if I recall correctly, if you start the process your self, then you do not need special p...

File Not Found #3
When I send copies of a few worksheets from an Excel file that contains many other worksheets to a new file I get a File Not Found when I try to open the new file how can I get rid of the anoyance? Leslie I am wondering if you are running into a codename issue with a lot of worksheet copying. Normally this is hidden from the user. Open the workbook and then the VBE by pressing Alt+F11 On the left you should see the project explorer and the properties window. In the project explorer take a look at the sheet names. One name is the sheet tab name. The other name is the worksheet code ...

Found a way to edit vCard name?
Here's a mildly unusual one: I've got Outlook 2000 running on Windows XP Pro. I've created myself as a contact so that I can send my contact info automatically as a vCard. The problem is, when I do that, Outlook includes my email address as part of the VCF file's name. The SMTP service we use filters that (actually just the "at" sign included in a filename) as spam. Not acceptable. I know I have the option to manually save the info as a VCF file and then manually attach it. That lets me avoid the spam filter. But I'd love to do this manually....

Required section not found in the INF
In the course of reinstalling my Canon printer (MF4350d) I have consistently run into this error message once I have installed the Canon drivers, which I have done multiple times in the past few days trying to get my printer working again. The Canon techs threw up their hands and said it is a Windows problem. I am using WinXP SP3. Printer was working fine until we made the mistake of trying to udate the drivers which required uninstalling the current drivers thus putting me in this goofy neverland. Any suggestions? I am on the verge of reformatting the hard drive for want of...

How to seek and then reference the found record to a form record?
I am having trouble using seek to find a record with a unique Serial Number and then display that record on a form. The Serial Number input is a string (textbox). My seek code works Ok but after seek, if not EOF, I try to find absolute position and then use "goto" that record on the form but the absoluteposition is not always correct. The record that gets shown is always offset of one or two records from what I need.Any help is appreciated.-- Regards, Michael...

WMI Object
This script works on V1, but I am running it from V2. I am trying to automate SCCM collection population using queries (as opposed to direct memebership). A successful running of the script will take a CSV file, pull out PC names, put those into a WQL query format, and then push the query into SCCM through the WMI interface. The class\instance I am trying to connect to is \\<SCCMServer>\root\SMS\Site_<sitecode>:CollectionID="<CollectionID>" When I enumerate this object in wbemtest on the server, I get 2389 objects returned, but when I connect throug...

Crystal Report not found on File Repository Server
I recently upgraded our MSCRM server to a new server. We don't typically use the internal CRM reports, we have some custom ones created with PowerTrack that we primarily use. The CEO tried today though to open one of the canned MSCRM reports and got this error message. I tried the others and I get it on all of them. CrystalReportViewer File frs://Input/a_063/021/000/5439/6ac34043c58b1112.rpt not found on File Repository Server. I checked the input folder in c:\program files\crystal ent 9\filestore\input and it is empty. I would have copied them from the old server, but it is ...

XMLWriter/XMLReader vs MSXML 4.0
Hi to all! someone of you know the difference between XMLWriter/XMLReader and MSXML4.0? The first one has the same capacity of the second one? Which is better to use? Which give the clearest messages or the greatest amount of information about the kind and the origin of error (considering that I have to show messages in Italian and the Framework is in English)? And ...is it difficult to include msxml4.dll in my project? Thank you in advance to all. Fede. Fede wrote: > someone of you know the difference between XMLWriter/XMLReader and MSXML4.0? > The first one has the same capacity ...

No entry point found
Error message " entry point GetIums could not be located in the DLL,MSDART.DLL Install MDAC 2.8 http://www.microsoft.com/downloads/details.aspx?FamilyID=6c050fe3-c795-4b7d-b037-185d0506396c&DisplayLang=en -- Diane Poremsky [MVP - Outlook] Author, Teach Yourself Outlook 2003 in 24 Hours Coauthor, OneNote 2003 for Windows (Visual QuickStart Guide) Author, Google and Other Search Engines (Visual QuickStart Guide) Outlook Tips: http://www.outlook-tips.net/ Outlook & Exchange Solutions Center: http://www.slipstick.com Join OneNote Tips mailing list: http://www.onenote-tips.net/ ...

XmlReader and LineNumber
According to the MSDN documentation within the XmlTextReader class for ..NET 2.0, the recommended practice to create XmlReader instances is using the XmlReaderSettings class and the XmlReader.Create() method. However, the problem is, the XmlReader class does not expose certain properties that I need, e.g., LineNumber, LinePosition, etc. I would like to follow Microsoft's recommended practices, but I'm not sure how I can get XmlTextReader functionality out of XmlReader. Should I instantiate a XmlTextReader object and pass this to the XmlReader.Create() method and then access this under...

How to obtain a utf-8 string from an XmlReader?
Hi all, I'm trying to convert the xml obtained from a XmlReader object into a UTF-8 array. My general idea is to read the XmlReader and write into a MemoryStream. Then convert the MemoryStream bytes into utf-8. MemoryStream ms = new MemoryStream(); XmlTextWriter xmlWriter = new XmlTextWriter(ms, new UTF8Encoding(false)); writer.Formatting = Formatting.Indented; writer.Namespaces = false; writer.Indentation = 4; while(xmlReader.Read()) { xmlWriter.Write(?); } xmlWriter.Flush(); xmlWriter.Close(); string xml_as_utf8 = Encoding.UTF8.GetString(ms.ToArray()); B...

XMLREADER or XMLDocument???
How do I read the attributes of this XML? I have a page with text boxes that i want to read these values in. notice there are 2 Parameter tags with the same attributes. Code would help <TranslationRecords> <TranslationRecord TrxID="1"> <ParameterCollection> <Parameter KeyName="FielDelimiterChar" KeyValue="29" /> <Parameter KeyName="SegmentDelimiterChar" KeyValue="30" /> </ParameterCollection> </TranslationRecord> </TranslationRecords> Thanks Try this as a template. It should be gene...

Highlight found words
Could anyone help me with the following:- I am designing a search form based on "Cool Search Tool" found via http://www.access-programmers.co.uk/forums/showthread.php?t=120366. The problem I have is that I need the found records to highlight the search word in their respective field (Highlight All Instances of Found word). I would not need the text box containing the search word to be highlighted but would need each in my case six memo boxes to highlight each found word e.g. both �A�s� in my code example I found on the net. If this is not possible a control that I can click o...

"No internet accounts were found to import"
seems to be common problem Outlook2K - but i haven't found an answer i want to import an O/Express (.iaf) email account - dead easy on my home machine using Tools/Accounts/import - but my works network machine doesn't have Tools/Accounts - it has Tools/Services so i tried File/Import/ImportInternetMailAccount and without even looking it responds: "No internet accounts were found to import" anyone know how to import an email account ? Can you switch the machine to Internet Mail Only mode: http://www.slipstick.com/outlook/choosingmode.htm "JethroUK�" <rep...

OMA Page Not Found
Hello, I am getting a http/404 page not found after authentication using OMA on Exchange 2003/Windows 2003. After exhausting the usual resources and searching high and low I am asking if anyone might know of a solution. When accessing: http://server.com/oma We authenticate (basic authentication) and get a 404 page not found OWA works fine (it is not HTTPS enabled, so I don't think the SSL issue applies). The interesting part is that we can browse using the URL: http://server.com/exchange-oma , authenticate, and access the same data in that fashion with no problems. The event log h...

XmlReaders and fragments
When reading fragments, it seems like XmlReaders try to read too much. I'm working on a file parser for a new file format, and I've run into a problem. The format has an XML fragment for a header, then a (frequently) large amount of binary data beneath. In certain situations, there may be XML fragments further down in the file. An example of the file might look like this: <header> <name>some name</name> <size>1000</size> <stuff>more data</stuff> <otherstuff>19.2</otherstuff> </header>...some huge block of binary data....

installation outlook 2003
I am installing outlook 2003 for the first time and towards the end of the install I receive the message OUTLOOK.PST could not be found. After I acknowledge the message, I get a Open File dialog box which I cancel out of... after all this is a brand new install, what the heck am I going to point to?? Thanks, B Use the mail applet in the control panel to configure, profile/accounts/data file "bobbymak" <bobbymak@discussions.microsoft.com> wrote in message news:DE2EF0C4-AAA0-4483-81DF-35F6D045B9FC@microsoft.com... > I am installing outlook 2003 for the first time and ...

File Not Found #2
Excel 2000 Do you know why the annoying "File Not Found" dialog box shows up? This sort of thing happens when I move a few of the work sheets out of my main spreadsheet, which contains about 25 worksheets. In other words, I create a smaller file by exporting just 3 worksheets that are part of a large file that contains about 25 worksheets. If I click the "X" (File Close) button several times, the annoying dialog boxes finally go away, only to re-appear the next time I open the small file. The worksheets that I want to use to create the small file were o...

CListCtrl, LVS_EX_CHECKBOXES and XP Visual Styles
I have a CListCtrl using the extended style LVS_EX_CHECKBOXES to display a checkbox at the start of each row. The code has worked fine (for years). Now, if I enable XP visual styles (by including a suitable manifest file) - I have a problem: I get the new themed appearance for the checkboxes, but the checkbox disappears for the item with keyboard focus (I'm using the standard Windows XP style). Is this a bug in the new common controls library, or a missing bitmap in UxTheme.dll? "Stephen C. Steel" <StephenCSteel@discussions.microsoft.com> wrote in message news:C8...

XMLreader to text
This is a multi-part message in MIME format. ------=_NextPart_000_001A_01C3CDFB.F9247FB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable How do I read the entire XML text from an XMLReader ? I just want to retrieve the XML string from a SQL SP formatted as XML. = I assumed the ExecuteXMLReader was the best option. So whats the most = streamlined process of getting the XML into a string ? Thanks Bill ------=_NextPart_000_001A_01C3CDFB.F9247FB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-pri...