Maybe it's me, but it appears that if you have an XSD
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="User">
<xs:complexType>
<xs:sequence>
<xs:element name="Given...
I am building a report viewer. The viewer will contain a tree control that displays to the user all possible reports to choose from. I'm using a tree control because the reports could be grouped several levels deep. The tree could like this:
- North America
+ North Territory
+ South Territory
+ West Territory
- Units Manu...
I'm trying to validate one xml that I create with a local schema, but some freak error is throwing. My code:
SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setValidating(true);
factory.setNamespaceAware(true);
SchemaFactory schemaFactory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
factory.setS...
Coming from a .NET background where you can easily generate an object model from an XML schema (through, for example xsd.exe) I wanted to know if there is a similar facility for generating Objective-C/NSObject objects.
Thanks!
...
Hi All,
So I'm having a bit of trouble figuring out why I get a particular error. [NOTE: I've masked my AccessKey and Signature parameters]
The url below returns valid xml for ONE product.
http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=[myAccessKey]&IdType=ASIN&ItemId=B002UD52WQ&Operation=ItemLookup&ResponseGroup=Me...
Hello,
I am trying to read the Type elements from a WSDL. I need to extract the types information to extract the elements from the returned SOAP object. I have been experimenting with several classes over the last couple of days with no progress. Here is my code,
// Identify Simple Web Service Site with some good Types
String endpoi...
Is there a DLR-enabled XML navigation and reading class available in .NET 4.0? For example, imagine I have this XML:
<foo>
<bar>foobar is here</bar>
<bar>foobar is also here</bar>
<baz>foobar is not here</bar>
</foo>
Is there an easy way to navigate through this XML like this:
var doc = SomeDlrEnabledParser.Parse (xmlStrin...
I have the following XML document:
<ReportParameters SP="prRptActivityDetail">
<Parameter>
<Name>Period Start Date</Name>
<Type>Date</Type>
<Control>DateTextbox</Control>
<ControlName>dtePeriodStartDate</ControlName>
<Validators>
<Validator>Required</Validator>
<Validat...
I have a xml file with info inside. I want to convert the xml file to sqlite database without using a SD card in android platform(Java Language). Does anyone have any idea how to do it?
...
Hi I have a preformatted xml template file that lists all country codes.
I need to load this into a C# scipt and loop through and match the mc_name attribute to a country code and add a value attribute to the node.
I then need to render the edited xml on the page so it can be used as a data source for a flash chart.
example of xml is...
Hello all
I've an XML object converted into the following JSON object
"{"?xml":{"@version":"1.0","@encoding":"utf-8"},"Response":{"Users":null,"Messages":{"Tell":{"Notify":{"@From":"abc","@Message":"hi system, its abc<br/>"}},"Group":null},"PersistedMessages":{"Tell":null,"Group":null}}}"
How can i get the values inside the xml nodes...
I have this code in eclipse
NodeSet nodes = (NodeSet) xPath.evaluate(expression,inputSource, XPathConstants.NODESET);
and its giving me compile time error on NodeSet.
These are the stuff that I have imported. Can you tell me why it's doing this?
import javax.xml.xpath.*;
import org.xml.sax.InputSource;
import java.io.File;
import j...
I'm looking for advice here on a smart solution to my problem.
I'm writing an XML Document using the XMLWriter class and reading data out of an ADO.NET DataReader in a forward-only fashion. In the top of my XML file I need to have elements like so:
<datefrom>2010-07-08</datefrom>
<dateto>2010-07-10</dateto>
<total>335.00</total>
<dat...
I am a beginner in PHP and I know nothing about XML manipulation. I am working on a Google CSE annotation XML shown below:
<?xml version="1.0" encoding="UTF-8" ?>
- <Annotations>
- <Annotation about="http://sanspace.in/">
<Label name="_cse_byxamvbyjpc" />
</Annotation>
- <Annotation about="http://blog.sanspace.in/">
<Lab...
I am parsing an XML (RDF specifically) document, basically mapping it to some strongly typed objects in .Net. I have been using this really long syntax for selecting namespaces something like:
ontology.Elements("{http://www.w3.org/1999/02/22-rdf-syntax-ns#}Property")
What I really want to do is something like:
ontology.Elements("rdf:...
I'm trying to fetch data from a XML service... this one.
http://xmlweather.vedur.is/?op_w=xml&type=forec&lang=is&view=xml&ids=1
I'm using urrlib and minidom and i can't seem to make it work. I've used minidom with files and not url.
This is the code im trying to use
xmlurl = 'http://xmlweather.vedur.is'
xmlpath = xml...
Notice in this code I am trying to check for the existence of the rdfs:range element before trying to select it. I do this to avoid a possible null reference exception at runtime.
private readonly XNamespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
private readonly XNamespace rdfs = "http://www.w3.org/2000/01/rd...
I have a table:
declare @Table table (XmlPart xml, Cnt int)
the XmlPart is of the following form:
<Group count="0" />
I would like to modify XmlPart by substituting it with value of Cnt column. That's what I try:
update @Table
set XmlPart.modify('replace value of (/Group/@count)[1] with sql:column(Cnt)')
But the parser doesn't u...
Hello,
I have a website coded with XML+XSLT that outputs me a full HTML website. Now, to make the site more dinamic I want to split some parts of the document: the header, footer and sidebar. I was looking at Google and I found this solution:
<xsl:param name="doc" select="document('menu.xml')"/>
<xsl:template match="/">
<html><head></h...
Hi guys, I'm developing an application in windows forms with C#, and I'1d like to know How could I use Rss Toolkit in Windows Forms Application ? I've referenced in my solution but it doesn't work very fine, an error apper when I compile the app.
Is there any easy way to read Rss (Feeds) in Windows Forms ?
If someone can help me.. I a...