I am pulling down a large XML file and I have no control over it's structure.
I used a custom function to use the tag name to view the tree structure as a flex tree, but then it breaks. I am guessing it has something to do with my other function, one that calls attribute values from the selected node.
See code.
<mx:Tree x="254" y...
I have been using the Tigris community tasks to update various AppSettings keys using the XMLUpdate task.
Now, however I want to add a node to the system.net section to set up the proxy.
I declared a property
<PropertyGroup>
<proxy><defaultProxy> <proxy usesystemdefault="False" proxyaddress="http://IPADDRESS:PORT" />...
What unit testing strategies do people recommend for testing xml is being generated correctly.
The my current tests seem abit primitive, something along the lines of:
[Test]
public void pseudo_test()
{
XmlDocument myDOC = new XmlDocument();
mydoc = _task.MyMethodToMakeXMLDoc();
Assert.AreEqual(myDoc.OuterXML(),"big string of ...
Hello,
I’m trying to parse a XML file up to 500 mb in java. I tried to use SAX but it gives me this error
java.lang.OutOfMemoryError: Java heap space
at com.sun.org.apache.xerces.internal.util.XMLStringBuffer.append(Unknown Source)
Can you help me?
Thanks a lot.
P.S. Smaller XML files works just fine
...
I'm creating an XML document and I want to store URLs inside the a node like so:
<ns:url>http://example.com</ns:ulr>
My question is, do I need to encode/escape the URL in anyway?
If I do the will the .Net XmlDocument object handle this for me?
...
I have an app that loads some XML docs into memory then runs various queries against it using Linq.
The app runs fine on the live server (Windows Server 2003) and under Visual Studio 2008 on XP. But on my Vista laptop (4gb RAM, 2GHz CPU) all the Linq queries run really really slow. What should take a couple of milliseconds instead takes...
How did you get ASP.NET to output UTF-16 encoded text?
I serialize an object in .NET which by default is UTF-16 format. Now I want to send the string as an output response to an .ashx request.
I get the error:
Switch from current encoding to specified encoding not supported. Error processing resource
How do I tell my website or page t...
when am running player.php its giving an error
Warning: Cannot modify header information - headers already sent by (output started at /www/110mb.com/m/u/s/i/c/k/i/n/musicking/htdocs/player.php:8) in /www/110mb.com/m/u/s/i/c/k/i/n/musicking/htdocs/player.php on line 24
can u plz help?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transi...
I am writing a simple CSV to XML processor in Java.
I am using JAXB to generate a model in java from a DTD. I need to process the CSV format into this model, and then marshall it into the XML that complies to the DTD. I am using JAXB to marhall the data from the Java model to the XML. I have to write the CSV-Model mapping myself.
At th...
As a programmer, I am developing programs in procedural and OOP languages for many years now, and I guess I know beautiful and efficient code when I see it (or when I write it).
Recently I started to work with XSLs, and while they deliver the results I expect, I have no idea whether they are nice and beautiful and efficient. (well, they...
i try to update xml without linq (i am using VC 2.0). My xml file format:
<schedule>
<id>0</id>
<name>yusuf</name>
<status>0</status>
</schedule>
AFTER UPDATE:
<schedule>
<id>0</id>
<name>yusuf</name>
<status>1</status>
</schedule>
but i do not have any idea update status =0 to status =1
...
Hello!
I have the following code.
from xml.dom.minidom import Document
doc = Document()
root = doc.createElement('root')
doc.appendChild(root)
main = doc.createElement('Text')
root.appendChild(main)
text = doc.createTextNode('Some text here')
main.appendChild(text)
print doc.toprettyxml(indent='\t')
The result is:
<?xml version=...
I have a XSLT I've created to handle a particular xml document. However, now namespaces are being introduced in some, but not all of our documents. I'd like to use the same XSLT for these documents, however I'm having trouble modifying my stylesheet to be namespace agnostic.
It's been suggested previously to modify my xpaths to *[local...
Are there any recommendations for a Fortran XML library? I found a few, but I do not know how well they are supported.
...
Does anyone know of an existing means of creating an XML hierarchy programatically from an XPath expression?
For example if I have an XML fragment such as:
<feed>
<entry>
<data></data>
<content></content>
</entry>
</feed>
Given the XPath expression /feed/entry/content/@source I would have:
<feed>
<entry>...
I have an xml document object that I need to convert into a string.
Is there as simple way to do this?
...
Howdy,
Are there any resources out there that defines how a well formed XML or Schema may look like for InfoPath?
When designing a new form, there is an option to base the new form off of an existing XML document or XML Schema as the data source.
I am looking for any guidelines or rules that will help me make sure the structure of...
Followup question to Big XML File:
First thanks a lot for yours answers.
After… what I do wrong?
This is my class which uses SAX:
public class SAXParserXML extends DefaultHandler {
public static void ParcourXML() {
DefaultHandler handler = new SAXParserXML();
SAXParserFactory factory = SAXParserFactory.newInstance();
...
I have a table with say 1640 items. I set
bindingSource.Filter = "some filter query string";
and most of the rows disappear, leaving, say, 400 rows. I'd like to be able to tell the user "Showing 400 of 1640 items" as they click some textboxes which change the filter string and hence which rows are visible in the dataGridView object (m...
On e of my current requirements is to take in an Excel spreadsheet that the user updates about once a week and be able to query that document for certain fields.
As of right now, I run through and push all the Excel (2007) data into an xml file (just once when they upload the file, then I just use the xml) that then holds all of the nee...