xml

Client Application Communication with Application Server

We're creating a client-server model that communicates with an application server (Java clients, RoR server). We have a few options for the actual data that is going to be communicated: XML Communication that actually paints the client's screen (a la web-browser) Communicating just data/permissions/etc. through XML (Entire UI is held ...

Does XML::Simple maintain order when using arrays?

I'm using XML::Simple to parse an XML file which I then want to use to write an output file in a very specific format. Thus, the output order is important. As I understand it, when the XML is converted to the perl hashref the order is lost (because perl hashes have no order). But what about when an array is used by XML::Simple. For ex...

Is there any XML Parser that comes by default with g++

PHP, C# is bundled with such parsers and are available with the default libraries. Does g++ have any such libraries? ...

Cretion CDATA section confusing

Trying o create CDATA section withing description field, code is pretty simple in resulting XML CDATA section does not appear!! Node de = document.createElement("description"); de.appendChild(document.createCDATASection(reportData.getIssue().getDescription() + "more]]>data")); e.appendChild(de); In result XML getting: <description>Ro...

How to make RatingBar to show five stars.

Hi! I am following the standard example of how to add a RatingBar. To control the number of stars I tried to use android:numStars="5". The problem is that the number of stars doesn't seem to do anything at all. In portrait-layout I get 6 stars and when I flip the phone I get about 10 stars. I tried to set the number of stars in my Activ...

select a node with an xmlns?

I am trying to select all of the links in a xhtml document in xsl. Some of the anchor tags have the namespace declaration xmlns="http://www.w3.org/1999/xhtml" in them. These are not selected. e.g. with this xml doc: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="xsl.xsl"?> <root> <item> this iz sum text and it haz sum ...

Create own custom View without useing XML

Hello. I want to create a own View which containst two buttons without useing xml. I tried this: public class ZoomPlate extends LinearLayout{ private Context context; private Button plus; private Button minus; public ZoomPlate(Context context) { super(context); init(context); } public Zoo...

From a list of child elements take just one from the middle

Greetings, I have a problem and a deadline (I just know there are some knowing nods at that plight) Background: I had a need to store data elements in an hierarchical nature. In a nutshell my xml is a set of rules that instruct a graphical drawing engine to draw a number of series on a chart according to a strict parent child relations...

How do you define an XML schema ID attribute that has a pattern??

This XML documentation seems to say that the ID derived type supports a pattern, but when I try to define one with this code: <complexType name="CourseType"> <attribute name="courseNumber" type="ID"> <pattern value="[A-Z]{2}(\d{3}).(\d{3})" /> </attribute> <attribute name="numOfCredits"...

How to download an XML without the browser opening it in another tab

Hi All, I have an xml file to be downloaded. As you all know when i give the below link <a href="some.xml">Downlad XML</a> The XML will open in a new tab displaying it. However I would like to know if there is a way, this can downloaded like other files such as a .zip file Help would be greatly appreciated Thanks ...

Surface an XML schema as an ASP.Net user interface in SharePoint 2010

I have a requirement (at the least possible cost, be that custom dev or 3rd party product) to take an XML schema (which is subject to regular change) and surface a UI to this through SharePoint 2010. The UI cannot require manual changes when the XML schema changes. So in some way the UI needs to be dynamically generated from the schema...

Calling sproc from LINQ with an xml parameter

There is an existing sproc that for the purposes of this experiment I do not want to change. It is currently called via a non-linq method like a sqlcommand and takes an xml parameter. Current implementation (Non-Linq) An xml fragment eg: "<someTag>1</someTag><someTag>2</someTag>" is passed to the sproc as a string. Notice that ...

google map v3 KmlLayer, Geocoder

Hi, I have some problems making a google map that loads XML file that have addresses instead of latlng. XML file holds about 10 records. I can not figure out how to do this. $(document).ready(function(){ var refreshId = setInterval(function(){ var latlng = new google.maps.LatLng(18.156291402835436, 22.2802734375); ...

Xml structure with XStream

I have class: public class EnglishWord implements Serializable, Comparable, Cloneable { static Logger logger = Logger.getLogger(EnglishWord.class); private static final long serialVersionUID = -5832989302176618764L; private String word;// in lowercase if not personal name private int occurenceNumber = 1;// 0,1,2,3, private...

Convert the XML to JSON format

Hi, everyone, I want to convert the XML file to the JSON format, but I don't know how to convert it into JSON format. Can anyone help me? Thank you. <class> <num>2</num> <student> <name>[email protected]</name> <age>5</age> </student> <student> <name>[email protected]</name> <age>10</ag...

Serializing an object as UTF-8 XML in .NET

Proper object disposal removed for brevity but I'm shocked if this is the simplest way to encode an object as UTF-8 in memory. There has to be an easier way doesn't there? var serializer = new XmlSerializer(typeof(SomeSerializableObject)); var memoryStream = new MemoryStream(); var streamWriter = new StreamWriter(memoryStream, System.T...

& symbol in xml

Hi, I'm working with a xml file which fails when opening it in firefox. I'm getting an interpretation error. Its all because of the & symbol. When replacing it with&amp; or removing it i get no error. The problem is that the receiver of this xml document who prints it out on their homepage prints out &amp; instead of &. Can i do somet...

How to insert text with XSLT v1.0 instead of using an XSLT v2.0 regex?

I have an xml file which describes (among other things) elements with attribute values that describe fully qualified java class names. I am trying to write an XSLT transformation to modify the class names described in this file, such that (for example) ocurrances of com.example.MyClass will become com.example.MockMyClass. Here's that ex...

why does HTTPClient response produce JSON stream, when the same GET request in the browser shows XML response?

Hi, I am using HttpClient for the first time to make a request to a web service (defined by WADL), I'd like to unmarshall the response into a meaningful object, in the browser if I perform the Get request it response with XML. But when I display the response from the code it seems to be JSON. Am I missing a step? or is there a way th...

How to retreive a specific XML node from an Oracle table?

Hi all, I have an oracle table which has a column that stores XML in a CLOB format. The XML has the following syntax: <?xml version="1.0" encoding="ISO-8859-1" ?> <BaseXML Version="2009.4"> <InvoiceCanvasDetails> <Grouping> <ParentGroup Name=”Parent group 1” ID=”100”> <ParentGroupLineItems> <Item ID="46...