I've go the following XML file...
<A>
<B>
<C>ValueX</C>
<D>ValueY</D>
</B>
</A>
Which I read into a DataSet to display it in a DataGridView.
DataSet ds = new DataSet();
DataTable t = new DataTable("B");
ds.Tables.Add(t);
t.Columns.Add("C", typeof(string));
t.Columns.Add("D", typeof(string));
// bind to DataGridView
ds.Rea...
If I submit a sitemap.xml which does not contain all of the pages of my site, will this affect my search ranking?
For example: If my sitemap only contained pages that had been created in the last month and didn't include all the pages from the past year, would Google treat these missing pages differently?
...
I thought XML is highly portable and can be used as a mini database. I have seen XML used everywhere. I even see large companies switching over to JSON. Even Microsoft has integrated support for JSON. What is all the hype over JSON?
...
I have an xml document with the following format:
<response username="123" customerName="CustomerName" siteName="SiteName" customerID="123" Period="2009">
<topics>
<topic name="MyTopic">
<department name="MyDepartment" parent="OriginalDepartment">
<questionHead result="Go" group="Group A" surveyID="1" questionID="2" ...
Hi,
With the following XML I am trying to copy and add to another XML but I haven't used the C# XML document objects before. So here is the XML
<config>
<configXML>
<Connections>
<Connection excyptedConnection="encrypted string">
</Connections>
<configXML>
</config>
I want to be able to copy out the Conne...
I am using a DataContractSerializer to serialize an object to XML. The main object is SecurityHolding with the namespace "http://personaltrading.test.com/" and contains a property called Amount that's a class with the namespace "http://core.test.com". When I serialize this to XML I get the following:
<ArrayOfSecurityHolding xmlns:i="htt...
I'm writing a small app with the help of Eclipse while learning Swing GUIs in Java. I'm also taking my first baby steps in Ant build scripting and have come across a small problem.
I'm parsing an XML file to create objects to store in a List. I've assigned the Ant build script to include the XML file in the Jar package by adding this to...
I have a set of XML documents that all share the same schema. (They're SAPI grammars with semantic tags, if that matters.) I can use the documents to match text strings, returning a set of attributes with known values.
My problem is that I'd like to take a set of attribute values and generate a string from the grammar that (when sub...
I am trying to parse XML in Perl using XML::SAX parser. My query is regarding generating attributes values. Right now I am able to generate only values present inside the tag elements but my goal is to generate:
Element Name: Element Value:
Element Attribute Name: Element Attribute Value:
Element Child Name: Element Child Value
...
I am querying a particularly ugly HTML file using xpath. I want to extract an HTML table that is buried deep within the document. However instead of going down through the hierarchy from //html/, is there anyway I can just reference the table's unique id attribute?
Obviously this would have far less chance of breaking due to page edit...
I Have this XML File
<?xml version="1.0" standalone="yes"?>
<Root>
<Object>
<referenceName>People</referenceName>
<query>select * from people</query>
</Object>
<Object>
<referenceName>Countries</referenceName>
<query>select * from countries</query>
</Object>
</Root>
I need to convert into an object ...
I am using JAXB for xml parsing, are there any performance or memory utilization issues?
...
In a recent task at work, I've been building the PHP end (using SimpleXMLElement) of an XML interaction with a .NET app. I've been encountering differences in conceptual thinking with my counterparts in .NET land, specifically because they're just using the XSD/XML libraries in .NET without thinking much about that, whilst I'm finding my...
Here's my problem:
My program is getting XML files as its input. These files may or may not have an xml declaration, doctype declaration, or entity declaration, but they all conform to the same schema. When my program gets a new file, it needs to inspect it, and make sure it has declarations like this:
<?xml version="1.0" encoding="U...
Hi there,
I'm using Wordpress's XML-RPC framework in my project. Now I have a situation where in the XML response there is a tag named which contains user data and by the time the response has been parsed and returned as some array format, that tag and it's value are gone. I have traced this down to NSXMLParser's parse method. Anyone ...
I'm having trouble getting my program to read this XML file properly, it will need to write to it also but not yet. Just note that this is only a little bit of the code
XmlDocument InstalledList = new XmlDocument();
InstalledList.Load(AppsInstalledFileNamePath);
//Sets the PackageNode to the correct part of the XmlDocument
XmlNodeList ...
I have a string exactly like that:
<info>
<m_album>value1</m_album>
<m_cat>value2</m_cat>
<cat_type/>
<cat_permission>0</cat_permission>
<m_img_thumb><!--[CDATA[urlvaluetoimage]]--></m_img_thumb>
<m_img_medium><!--[CDATA[urlvaluetoimage]]--></m_img_medium>
<m_img_large><!--[CDATA[urlvaluetoimage]]--></m_img...
Hi,
I am extracting data from an XML and some tags have data inside CDATA in this way
<description><![CDATA[Changes (as compared to 8.17) include:
Features:
* Added a ‘Schema Optimizer’ feature. Based on “procedure analyse()” it will propose alterations to data types for a table based on analysis on what dat...
Hi,
Are there any proper xml binding(mapping) solutions (OXM) in .net? What I need is to generate model classes from arbitrary xml. As for now I can't find anything like JaXB 1/2, JiBX, Castor XML, XMLBeans in Java.
...
Hi, I need to parse the following xml document (which is coming from external web service):
...
<dati>
<Riconoscimento>
<IdentificativoPosizione>xxxx</IdentificativoPosizione>
<OutputRestituiti>xxx</OutputRestituiti>
</Riconoscimento>
<![CDATA[text text text]]>
</dati>
...
The problem is that until ther...