xml

What's the difference between xsd:include and xsd:import?

What's the difference between xsd:include and xsd:import? When would you use one instead of the other, and when might it not matter? ...

Apostrophes in XML and Databound Controls

In my XML, it's possible for an apostrophe to appear in a node's value: <Root> <Sections> <SectionA> <Heading>Title</Heading> <Description>This is section 'A'</Description> </SectionA> </Sections> </Root> If I have controls bound to this XML: <asp:FormView ID="myFormView" runat="server"...

char '0x8' what character is this?

I have a large amount of data in a database. When I attempt to read a certain portion of the data and generate some xml and send it to a webservice I get the following exception... The char '0x8' in 'java.lang.IllegalArgumentException'. I'm guessing it is some bad data, as it has worked perfectly for about 7 months but now some user...

How to Get Results From a Background Process

I am designing a Ruby on Rails application that requests XML feeds, reads them in, and parses them into objects to be used in views. Since the request for the XML feed and subsequent receipt of it can take several seconds from some sources to complete I need a way to offload these tasks from my front-line application tier. I do not want ...

Using XML::LibXML: How do I create namespaces and child elements and make them work together?

I'm trying to do some stuff with FOAF and Perl. I'm unhappy with the current solutions and I want to roll my own. Please do not reference any module other than XML::LibXML. For reference here is a snippet from a FOAF file <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/...

How to find elements by 'id' field in SVG file using Python

Below is an excerpt from an .svg file (which is xml): <text xml:space="preserve" style="font-size:14.19380379px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:DejaVu Sa...

Best way to create an xml document and save to a file?

I have an object that i want to create an xml from, what's the best way to do this in asp.net 3.5? I want to save it to file also (web application) I don't want to serialize the object, since I will have some custom element names and attributes and values that will be modified during xml creation. ...

How do I insert <span> tags into the middle of text strings that were generated from an XML feed?

I'm building a wordpress theme for a client who wants to pull their favorite songs from Hype Machine into the site. I'm doing by grabbing the XML feed. In terms of styling the results though, I'd like to be able to style the Artist Name differently than the Song Title. Unfortunately, the feed includes both the Artist Name and Song Tit...

Using perl's XML::LibXML how do you use XML Prefixes and not xmlns attributes?

I believe this question might have been previously attempted in 2006 on a different site. But, my current XML/RDF writer (XML::LibXML 1.70) outputs element namespaces in the form of xmlns attributes. This will exclude people using non-namespace aware parsers who just do a look_down for foaf:Person. I'm wondering if anyone knows of an eas...

Make MS SQL 2008 generate XML like MySQL 5.0?

A while ago I wrote an app that relied on XML coming out of a MySQL 5.0 database. It got this XML output by calling the mysql client directly, using the --xml command-line option; this made MySQL output XML that looked kind of like this: <resultset statement="SELECT * FROM tablename " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan...

Add iframe to xml for a flash website

I need to add an iframe so it loads up an outside website in my flash site. The site uses xml files for all the text. The site I am referring to is tripodoregon.com click on The Scoop. Any help is much appreciated guys! ...

I need to get xml with php. How would I go about that?

What is the best way? ...

xml editing backend

I would like to have an xml editing interface for a site's backend. There are many php based CMSes of varying sizes (my favorite being modx), but for some projects it is just overkill. The point of this xml management system would be that the user would have a graphical interface for xml file generation, from the browser. some additi...

android:state_enabled missing/not working??

I do not have the property android:state_enabled for any of the controls. Typing it manually doesn't work either. I can only use the deprecated android:enabled. I have the latest everything. ...

How to add a radio group to radio buttons inside of a table?

I have multiple radio buttons which I want to layout using a table but also include them in a single radio group. I have the following xml layout: <RadioGroup android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:id="@+id/Group1"> <TableLayout android:id="...

string to PCWSTR -> strange return(C++)

Hello, i'm really new to C++-programming and i've got an a problem with writing into a xml document. I'm using a slightly changed example of xml outputter from msdn (http://msdn.microsoft.com/en-us/library/ms766497(VS.85).aspx). HRESULT CreateAndAddTestMethodNode(string name) { HRESULT hr = S_OK; IXMLDOMElement* pElement = NULL; CHK_...

Excel Automation for Business Solution and Server-Side Processing

Hi, Our company has thousands of Excel files, where each Excel file describes one IPVPN network. This Excel files follow single format, which keep data on contact information, site detail, router specifications, primary/backup link specific details, VRF etc. From time to time, the format change, and we have to dedicate few person to ma...

Error about invalid XML characters on Java

Parsing an xml file on Java I get the error: An invalid XML character (Unicode: 0x0) was found in the element content of the document. The xml comes from a webservice. The problem is that I get the error only when the webservice is running on localhost (windows+tomcat), but not when the webservice is online (linux+tomcat). How can I ...

XForms: how to deal with instance data that changes?

Hi all, At the moment I am working on an XForms application to mutate XML data. This data comes from a local XML file. The file is exported from another application in a static way and read into the application. The problem is that every time the data changes (the XML structure remains the same). How can I fix this in XForms? I use XSLT...

Java/Jsp XML Dom

Hi all, looks like I need help again! :-/ Im trying to read this XML file with Java/Jsp: <?xml version="1.0" encoding="iso-8859-1" ?> <universal_campaign> <campaign_details> <campaign_id></campaign_id> <campaign_title>Test Campaign</campaign_title> <campaign_sdate>2010-01-21</campaign_sdate> <campai...