xml

Getting info out of XML document in VBA

I'm using MSXML2 to load an XML file (a feed from Google Analytics). I now need to get data out of it, but I can't figure out how. This is the XML: <?xml version='1.0' encoding='utf-8'?> <feed xmlns='http://www.w3.org/2005/Atom' xmlns:dxp='http://schemas.google.com/analytics/2009' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/...

Why am I getting "MalformedURLException: no protocol" when using SAXParser?

I'm copying code from one part of our application (an applet) to inside the app. I'm parsing XML as a String. It's been awhile since I parsed XML, but from the error that's thrown it looks like it might have to do with not finding the .dtd. The stack trace makes it difficult to find the exact cause of the error, but here's the message: ...

Which interface should I implement to have parse method

Hi, I'm working with webservices. I have a java object defined for the request. I'd like to create a java object of this type from a String or a XmlObject. Which interface should I implement to use the method parse to do this? Thanks and regards ...

How can I efficiently and easily import/export large business data in .NET ?

Hi, What would be the best data format (XML, Database, etc.) for large business data when we want to efficiently and easily load all of it (import) into business objects in .NET ? I want to load all the data in one go and create all business objects. The data must have a kind of a "schema" to enable other people to create it. Also n...

Online WYSIWYG XML editor

Is there any open source online WYSIWYG Editor for various XML documents? I think the style could be added by XSLT, but if there is an editor, wich uses some other way to assign style to an XML file, I'm intrested. EDIT: I've checked Xopus, Jaxe, Vex, Oxygen, Bitflux already, but none of them are matches the conditions above (not openso...

xsl foreach loop not working on xml

I've been trying to iterate through an XML file using XSL , however I'm having major troubles as the only first language is being recognised. Help! <?xml version="1.0"?> <languages count="1"> <language>English (UK)</language> <language>Spanish</language> <language>Arabic</language> </languages> <xsl:stylesheet xmlns:xsl="http://...

How to verify XML Digital Signature in native C++ without MSXML 5?

I'm considering using an XML dsig for basic app licensing. The app is native windows code (no .net). I can easily use .net to create a dsig offline, but then I want to verify it in native c++. From what I've found so far MSXML V5 will do the job, but musn't be used and V6 removes support for dsigs. So how can I easily verify an XML dsig...

View xml request in SOAP call

I'm trying to debug some problems we have with a web service, and would like to view the xml used in the SOAP call. Anyone who know how I can do this in visual studio 2008? I'm developing on windows mobile 6 using compact framework 3.5... ...

Validating an XDocument instance against its own schema reference.

I'm using the XDocument.Validate extension method to validate my instance. Is there anyway to hold an XML instance accountable to its own schema reference? This seems like something that would be fairly implicit. Unfortunately simply loading the instance into an XDocument doesn't seem to perform this validation implicitly. ...

How do I modify node value while iterating with XPathNodeIterator?

I'm navigating XML document with XPathNodeIterator, and I want to change some nodes' values. I can't figure out how :( Here's the code I'm using: XPathDocument docNav = new XPathDocument(path); XPathNavigator nav = docNav.CreateNavigator(); nav.MoveToRoot(); XPathNodeIterator itemsIterator = nav.Select("/foo/bar/item"); while (medium...

Flex Binding ComboBox to XML children

Hi All I am having some problems with my data binding and I hope somebody can help me. I have created a really simple example for what I am trying to achieve, which you can see below. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalAlign="middle" ini...

How to display XML source code using HTML with Emacs?

In the HTML file, I need to show some XML code. The problem is that I can't use <pre>..</pre> to show '<' and '>'. What would be the solution for this problem? ADDED From the answer, replacing '<' and '>' to &lt; and&gt; can be a solution. I'm an Emacs user, are there Emacs tools/magic to do that automatically? I mean, I can us...

Simple conversion between java.util.Date and XMLGregorianCalendar

I'm looking for a simple method of converting between java.util.Date and javax.xml.datatype.XMLGregorianCalendar in both directions. Here is the code that I'm using now: import java.util.GregorianCalendar; import javax.xml.datatype.DatatypeConfigurationException; import javax.xml.datatype.DatatypeFactory; import javax.xml.datatype.X...

GXT with JAXB classes

I am trying to create a user interface which contains an Editable grid which contains data from XSD file. I have generated the required classes from the XSD file using XJC. But I cant figure out how to load the data into the grid using methods of the JAXB generated classes. Can anyone please tell me how to go about doing this? I have imp...

XmlElementName - Change during runtime

I am implementing a class object that is serializable. something like this: StringWriter sw = new StringWriter(); XmlSerializerNamespaces ns = new XmlSerializerNamespaces(); ns.Add("", ""); System.Xml.Serialization.XmlSerializer x = new System.Xml.Serialization.XmlSerializer(this.GetType()); ...

Why does XMLEventReader report a CHARACTERS event that contains markup?

I have an XMLEventReader. It has been built from an XMLInputFactory with the "UTF8" encoding. I am using it to read an XML file whose "encoding" attribute is set to "UTF-8". I have verified that the XML file views correctly under Firefox. When you view the page encoding, it says that it is UTF-8. I have set the XMLEventReader to coa...

Question about iphone web app and jquery/xml/ajax solution

Here's some background of what i am trying to do: Ok, i am building an iPhone web app. Originally i was building it as one single page (index.php) with each "page" of the site being a <div> element and all of the contents of that page would sit inside the <div>. I originally wanted to create the app this way as one way to utilize JQTou...

How do I programmatically generate an xml schema from a type?

Hi, I'm trying to generate an xs:schema from any .net Type programmatically. I know I could use reflection and generate it by iterating over the public properties, but is there a built in way? Example: [Serializable] public class Person { [XmlElement(IsNullable = false)] public string FirstName { get; set; } [XmlElement(IsNull...

Add Stylesheet reference to XML Document in Linq?

I create an XML Doc and wanted have a reference to the XSLT file. //<?xml-stylesheet type="text/xsl" href="OBReport.xslt"?> to this XML generation: XElement xml = new XElement("ReportedOn", from dl in EL.DocumentLog.ToList() join o in EL.Organization on dl.OrganizationID eq...

Utilizing variables in xslt

I am inserting two variables countryVar and langVar into a node in my xml document. <link><![CDATA[/<% = countryVar %>/<% = langVar %>/products/index.aspx]]></link> I am utilizing the link node in a xslt like this. <a href="{link}"><xsl:value-of select="linkName"/></a> The value of link prints out exactly like it is in the xml docu...