xml

how to paginate an XML File

Hey I have been searching high and low for a way to paginate an XML file and i am beginning to think it might not be possible.. could anyone shed some light on this, is it possible, i can paginate database results no issue but can't find a way to do it... Seen some examples but they used an ID field that was in the XML file, and as i ...

Eclipse XML editor in Flash Builder

Eclipse (at least the JDT package) comes with a pretty decent XML editor. Flash Builder (based on Eclipse), however, does not. Is there a way to install this XML editor into Flash Builder as a plugin? ...

Website is not accepting my android application

The website http://www.slideme.org is not accepting to upload my android project. It says that the manifest file must have a label. I m posting my manifest file it does have a label. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android.com.machineInfo" android:versi...

How can I feed in X amount of items via jQuery then feed in a different x of items?

Hello guys, I was just wondering how I could read items from an XML file to feed in 12 items into an unordered list, then slide those out and feed in another 12 or the remaining amount that is left in the XML, a good example would be http://www.issuu.com - check out the magazines on the wooden background. Any help would be deeply apprec...

How do I represent tiles in XML?

So, I'm writing an AS3 program that tiles floor tiles. I want the user to be to be able to create their own floor schematic represented by different rectangles. It'll be drag-and-drop. They will lay out their schematic (which is composed of different size rectangular tiles) and drop colors/patterns onto them. This schematic will then be...

Paginated jQuery results from XML file

Hello everyone! I am having a spot of trouble trying to paginate some results from an XML file via jQuery, basically I need to display 10 Magazine covers and when the user either click previous or next another 10 are shown, respective of what has been clicked. Here is my code: $(document).ready(function() { $.ajax({ type: "GET", ...

PHP send SOAP response early?

Well this is an old issue I've been dealing with and still no solution, so trying a new approach. How can I send th SOAP response early (Before script execution ends)? These issues are cause when the ACK file is not sent before 30 seconds as the process takes longer to complete then the allotted time. flush() not working, get this err...

Beginner XML Schema: element with Attribute + Type

Hi. Lets take a look at my test .xsd: <!-- lot of stuff... --> <xsd:element name="root"> <xsd:complexType> <xsd:sequence> <xsd:element ref="target:child"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="child"> <xsd:complexType> <xsd:attribute name="childAtt...

How to monitor the size of a XElement

I am creating an XML document line by line and need to keep an eye on how large this file is becoming. The resulting file will need to be sent via MSMQ which has a message size restriction of 4Mb I think. What I need to do is when the document is getting close to this size, is to stop adding data and to add the document to a list and sta...

I need an XML schema with an enumerated type which allows wildcarding.

I want to define an XML schema which allows elements like this: <Element>TYPE1</Element> <Element>TYPE2</Element> <Element>TYPE3</Element> <Element>Any Other Text</Element> In this case, TYPE1, TYPE2 and TYPE3 are enumerated strings. However, the schema also allows any text content in Element. This seems like a strange restriction. ...

How do I define a new entity for the HtmlUnit XML parser?

I'm running into an issue with the HtmlUnit parser where I'm trying to grab some XML from a website (using the website's API) do a quick parse of the resulting XML and then save the XML to a file (all within the rights of the API). (sample content) Unfortunately the website returns an entity &iquest; in some of the requested pages, and...

Reading and writing to an XML - DTD error

I have a program where it reads and writes XML using XMLReader and XMLWriter XmlWriter writer = XmlWriter.Create(fullpath, settings); //content... writer.Flush(); writer.Close(); and my reader code XmlReader reader = XmlReader.Create(fullpath); while (reader.Read()) { switch(reader.NodeType) {...

Django request XML file with SSL IO error

I'm making a Django website and am fairly new. In this webapp I need to use this API which will spit out an xml file with the requested data from the database. Basically the API URL is: https://adminuser:[email protected]/database.getdata?arg=1&amp;arg2=0 So in my python views.py I have: def fetch_xml(url): import urllib ...

libxml2 error with namespaces and xpath

hello, I am pasting some code here that compiles with no warning using gcc file.c -lxml2, assuming that libxml2 is installed in your system. #include libxml/parser.h> #include libxml/xpath.h> #include assert.h> #include libxml/tree.h> #include libxml/xpathInternals.h> xmlDocPtr getdoc (char *docname) { xmlDocPtr doc; doc = x...

SSIS 2008 - import xml file contents into sql server

I want to take a series of xml files and pull the xml of the file into a table in the database. I have a for each file enumerator, then an xml task to pull out the dtd and put the contents in a variable. Now that I have the file name and the contents in a variable, I need to insert both pieces of data into the database. My table to st...

How can I get page's <title> tag's content if it can't be parsed as XML?

I'm using PHP libcurl to load a page. Now I need to get this page's <title> tag's content, and some other information too. I've tried to parse it using SimpleXML, but with no luck, because the page isn't valid XML. Can you suggest some other way to easily get contents of <title> tag? Thank you. ...

PHP XML editing CDATA node

Hi, I have an XML file with some CDATA nodes. I want to change the text inside the CDATA node (keeping it as CDATA node). So, I guess I first need to read the CDATA node and then write it back. But, I am not sure how to do that in PHP. I was able to create a new CDATA node but how can I edit a CDATA node? Is there a direct way to do tha...

DataTable to XML and ViceVersa in C# .Net

I am having a Problem with reading a xml file onto a DataTable. Initially I am writing a Datatable to a XML file and saving it. Now when I want to read the xml file back to the datatable, its not happening. The following is the code for writing and reading private void saveAsToolStripMenuItem_Click(object sender, EventArgs e) ...

How to generate CDATA block using JAXB ?

I am using JAXB to serialize my data to XML. The class code is simple as given below. I want to produce XML that contains CDATA blocks for the value of some Args. For example, current code produces this XML: <command> <args> <arg name="test_id">1234</arg> <arg name="source">&lt;html>EMAIL&lt;/html></arg> </args> </comm...

Application of an XPath query to a SOAPMessage in Java

Hi, currently making a SOAP request using Java's SOAPConnectionFactory and SOAPConnection's .call() method, which returns a SOAPMessage object, and I would like to apply an XPath query to it. Is this at all possible, or am I going about it completely wrong? As far as I can work out, I'd have to somehow convert SOAPMessage to an InputSo...