xml

How can I optimize my xml output so that the data transfer time be lower?

HI, I have a cron that calls a basic API URL. The output is xml so I use php's file_get_contents() to get the data to process. My question is, Does the output format of the xml make a difference in the transfer time from one server to another? The cron is running every ten minutes and I don't want the crons to overlap at some point bec...

How do I write an xsl-stylesheet to translate parts of a document based on content of matching tags...sort of?

I have a xml-structure thar looks a little like this: <Page> <Id>Page1</Id> <Content> <Header>This is the Header</Header> <Body>This is the body</Body> <Nested> <NestedItem> <Id>N1</Id> <Content>This is a nested element</Content> </NestedItem> <NestedItem> <Id>N2</Id> <Content>This too is a nested elemen...

XSL: translate() with html in replacing string

Hi, I have an xml document that looks like this. <?xml version="1.0"?> <services> <service sn="1" family="2 Week Wait"> <service_name>2 Week Wait Dermatology</service_name> <speciality>2 Week Wait</speciality> <clinic_types>2 Week Wait Skin</clinic_types> <tag>Malignant neoplasm of skin , Pigmented skin lesion </tag...

Parse incoming messages (which are in xml format) via bluetooth, read the value in the message and display a graphic

Hi, I am able to read incoming messages via bluetooth from my phone. I want to parse the incoming stream (new CAN message in xml format every 100 ms), read the value in the message and display a graphic on the main screen of phone. Need help in parsing this dynamic incoming stream. Programming in Java in Eclipse for Android. Thank yo...

How can I use xml resource file as url.

I have to use one API with params like XYS(LPWSTR UrlOfXmlFile); This API is exposed from a third party COM dll. Now I want to call this api with a url of xml file .This works fine when user is online. But if user if offline then I want to embed xml file as resource in VC++ with some values and want to pass this xml file as url to t...

Generating output from XML and CSS with docbook - working for HTML, failing for PDF

Hello. Starting from a series of xml files and a stylesheet I generate a HTML file using docbook-xsl-ns-1.73, libxslt-1.1.22.win32 and fop-0.94. the stylesheet says that code chunks must have numbered lines and a gray background. here is the piece of the and task that converts xmls to html: <exec executable="${XSLTPROC_EXECUTABLE}"> ...

Reverse tracking a XMLNode from a Treeview Nod

Hello I have assigned a XMLNodeList and its child nodes collection to a Treeview.. I get to see all the data on the treeview.. Now i select a treeview node item. I now want to get the XMLNode associated with it. Basically i want the conversion from a TreeNode ---> XMLNode Is this possible ? ...

AJAX database access in PHP. The simplest way.

I'm looking for the simplest possible solution to get mysql database records as XML output using PHP. That means no third party APIs. Just pure php code and as little of it as possible. I posted a similar article for c# in my blog and im looking for an equivalent that will work on any hosting company. Here is the link (i couldn't add ...

<DefaultFormula> Tags not adding to the default formula of the column

Hi I am currently creating a date time field for sharepoint in XML My field is created but no default formula is added. Do i need another tag to say i want to have a defaultformula . The schema i have is <Field <!-- Some properties here-->> <DefaultFormula>Today +182</DefaultFormula> <FieldRefs> </FieldRefs> </Field> Cheers ...

Is XStream still active/supported?

Does anyone know if XStream is still active/supported? It looks relevant to what we are trying to do, but it appears there have been no new releases or web site updates (at http://xstream.codehaus.org) for almost two years (since Dec 2008), therefore I was a bit suspicious ... wanted to check if this component is still in active use, or...

XML databinding to TreeView with child nodes of different types under the same parent

Note: See the bottom of this post for the solution. I'm trying to use XAML's "HierarchicalDataTemplate" to display an xml document in a TreeView. My current XAML code will display the first child of the "Parent" node but not subsequent child nodes of different types. Can I use XAML to display children of different types under a common...

Rails nested resources: Input vs. output format inconsistency

Given the following two models: class Company < ActiveRecord::Base has_many :departments accepts_nested_attributes_for :departments end class Department < ActiveRecord::Base belongs_to :company end I can now create a company and its departments in one go: @company = Company.create! params[:company] In this example params[:co...

How does one insert XSLT elements with attributes inside of javascript inside of a html attribute?

Question summary: What changes do I have to make to make the following xslt document valid. The following is a simplified version of a theme document I am trying to modify for a Gizmox WebGUI DataGrid control. The issue I am having with it is the horrendous onclick event attribute on the button element. I have tried the code both this...

C++ & XML: parsing XML in C++ working in Ubuntu Environment

Hi, I am working on parsing a xml file with C++ in Eclipse running under Linux Ubuntu. Is there any free library for this? Or any resource that I could start with? Thanks in advance! ...

Desktop application DB

Hi, I my quest to develop a cross platform application I have decided to use C++ with the wxWidgets for the programing language. Now I am facing a dilemma on what local storage solution should I use for a for this application. Any suggestions? Note: I am thinking of using SQLite, but I plan to store images in the DB and I am not sure i...

Python XML Parse (using schema to generate dataset)

I'm looking to parse a xml file using Python and I was wondering if there was any way of automating the task over manually walking through all xml nodes/attributes using xml.dom.minidom library. Essentially what would be sweet is if I could load a xml schema for the xml file I am reading then have that automatically generate some kind o...

Parse XML in C#

Hello I want to know how can I parse this simple XML file content in C#. I can have multiple "in" elements, and from those I want to use date, min, max and state child values. <out> <in> <id>16769</id> <date>29-10-2010</date> <now>12</now> <min>12</min> <max>23</max> <state>2</state> <description>enter text</description> </in> <in> <i...

How can I add my logo to my rss feed?

how can I add my logo to my rss feed? ...

Validating different sets of required attributes in an XML schema.

My requirement is to validate an xml with two different validation strategies. In strategy 1, the xml is required to have instances of an element with certain required attributes. In strategy 2, the xml is required to have instances of the same element with different required attributes. So, the idea is that there are two different sets ...

Problem parsing xml with jquery

I'm trying to parse xml from SharePoint service (lists) using jquery. I have XMLHttpRequest object xData which contains responseXML property, which is IXMLDOMDocument2. xData.responseText has following value: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http...