xmlreader - Represents a reader that provides fast, noncached, forward-only access to XML data.
8
votes
0answers
4k views
Tell StructureMap to use a specific constructor
I have two services that require an XPathDocument. I want to be able to define named instances of XPathDocumnet to use in the configuration of the two services. I also want to be able to tell ...
2
votes
0answers
200 views
Is it possible to save the current XMLReader Position for later use?
I have created an XMLReader object out of a Stream object which I was written to earlier by XMLWriter object.
I know XMLReader object is forward only and therefore I want to be able to save current ...
2
votes
0answers
119 views
How can I use XMLReader to read number of elements below specific node element?
Lets say you have the following xml convention which can't be replaced:
Each class is represented By <Class> and HashCode attribute.
The name of the class is right below the <Class> tag.
...
2
votes
0answers
90 views
Lightweight Alternative to XmlTextReader.ReadElementContentAsBinHex?
I'm running into a problem with memory bloat using XmlTextReader.ReadElementContentAsBinHex. Let me first say that I'm not using hex by choice, but as a result of needing to interop with a legacy ...
2
votes
0answers
226 views
XmlReader hangs after first Read
I'm trying to read an xml stream through TcpClient:
TcpClient clientSocket = new TcpClient("172.16.1.222", 80);
After creating the stream as
NetworkStream serverStream = clientSocket.GetStream();
...
1
vote
0answers
53 views
Loading Xaml via XamlReader only for Preview
just got some Problems with Loading Xaml Files by Runtime.
For your Information my Code-Snippet to Load the File as Content of a Usercontrol:
public UserControl LoadXaml(FileInfo paramFile)
...
1
vote
0answers
116 views
XmlReader blocks after first read from a NetworkStream
I am having problems deserializing data from a network stream. Once the socket is opened the first read statement is successful but a subsequent attempt to deserialize the data blocks without an error ...
1
vote
0answers
134 views
Need code that uses XmlReader only for gathering error messages from WCF Trace files
I am using the following method to gather error messages from WCF Trace files. The problem with this code is the XPathDocument use. If there are any errors in the file, the document will not load.
...
1
vote
0answers
107 views
Does PHP XMLReader::open require allow_url_fopen to be on?
Does PHP XMLReader::open require allow_url_fopen to be on? I found no official documents regarding this.
If it is, what is the workaround if I have allow_url_fopen disabled?
1
vote
0answers
236 views
Working with large XML files in PHP
i have a problem using XMLParser and simplexml_load_dom. Im trying to search in 4 with 2MB each files and in a 27 MB file. The problem is not with the memory but with the execution time (around 50s). ...
1
vote
0answers
295 views
Ignoring namespace in XmlReader
I'm using an xmlreader to read an xml file. The problem is i have many undefined namespaces in the child elements. Because of it, I'm unable to read the content of the files. Is there any way to read ...
1
vote
0answers
395 views
WPF Write/Read BitmapImage to XML failing with 'No imaging component…' Error
I am trying to write/read a BitmapImage to Xml using the XmlReader/XmlWriter classes. On writing out I can see a nice long CDATA section in the output Xml file. When reading in I can see that it is ...
0
votes
0answers
19 views
Read specific XML tags with XMLReader
Here is my C# code. Stuck on the IF statement for reading a specific area within the XML file. I have tried every method but cannot get this sucker to work. Any assistance would be awesome. Learning ...
0
votes
0answers
15 views
XMLReader memory leak
I have problem with memory usage while reading large xml files. Here is example of code:
$reader = new XMLReader();
if (!$reader->open($localFile, 'ISO-8859-1')) {
die("Failed to open xml");
...
0
votes
0answers
18 views
XMLReader - Blank Page With No Errors
I'm trying to get the data from an XML file into an array so that I can import it via 'Magmi'. Using the following code, I'm working with a 3.6GB XML file.
<?php
$z = new XMLReader;
...