xml

Webservice-Client: Use plain-text xml instead of object hierarchy

I am programming a simple proxy in java: Read XML File Send request to Web-Service Read Web-Service response Write response to file My first attempt is using JAXB to read the xml-file and generating Java-Objects. Then I send the objects with JAX-WS (IBM WebSphere). I receive the response as a "ResponseObject" which is then genera...

is it possible to sort an xml file using xsl

I have the following xml file <ScheduleProvider id="257" scheduleDate="2008-03-20T15:34:18Z" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="my.xsd"> <Content action="insert" duration="7200" id="2" title="movie-2"> <EpgDescription> <EpgElement key="Year">2002</EpgElement> ...

Should I use XML or Binary to send data from server to client ?

I have two separate apps - one a client (in C#), one a server (in C++). They need to exchange data in the form of "structs" and ~ about 1 MB of data a minute is sent from server to client. Whats better to use - XML or my own Binary format? With XML: Translating XML to a struct using a parser would be slow I believe? ("good",but: load...

Working with XML...

I'm planning to create a news item which uses xml as it's backend and the Display should be like: Date: 08/Mar/2010 ------------------------------ Title     | News ------------------------------ News 4 | Some news News 3 | Some news News 2 | Some news News 1 | Some news ------------------------------ Date: 07/Mar/2010 ----------------...

How to secure my connection string? powershell + xml

I store my connection-string in XML file. Then i use it in powershell script. Is there a way to secure it/to encrypt it somehow? ...

Using XPath function fn:replace from XSLT

I'm trying to use XSLT to convert a simple XML schema to HTML and planned to use fn:replace to replace returns (\n) with <p>. However, I can't figure out how to use this function properly. A simplified version of the XSLT I'm using reads: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org...

Best way to retrieve XML data in MVC?

If I am passing an XElement or XDocument to my ASP.NET MVC view, what's the best (read: easiest) way to repopulate my XML with the values returned from the edit form on submit? Thanks, Matt. ...

Simile timeline - Reading from database without using XML?

Does anyone have any thoughts about making Simile read data from a database without using XML? Or is XML definitely the way to go. I'd like to hear about possible alternatives and opinions around what would be the most optimal solution. The data I will be using are basically just coordinates and geographical names, as well as some small...

creating XSD schema files for GAC dll

How can I use XSD.exe to create an XML schema for the Microsoft.AnalysisServices.Database object? ...

Represent XML without xsd

Note: I cannot use XSD... not going to go into why. I'm having a problem properly representing the following xml in a class that it should get deserialized into: XML: <product> <sku>oursku</sku> <attribute name="attrib1">value1</attribute> <attribute name="attrib2">value2</attribute> <attribute name="attribx">valuex</attri...

What are likely causes of StringBuilder and ResultSet performance issues

I'm looping through a ResultSet in Java; which for testing purposes is returning about 30 rows with 17 Columns (all String data) per row. I'm manually building an XML String out of the results using StringBuilder and its literally taking about 36 seconds for the loop to finish these iterations. Note: I realize this isn't the best way to...

Is this a proper XML syntax

I was wondering if this was a proper XML syntax, because I need to remove a node in this document using VBscript and I really am not able to do it. <?xml version="1.0" encoding="utf-8"?> <dbm> <servers> <server name="PCTEST"> <references> <database name="TES1" path="\C$\Build"/> </references> </server> </...

using XSD.exe to generate an XSD

I am building SSAS cubes using AMO in c#. For this, I want to get a list of the public properties for the classes for Server, Cube, Dimension, etc. This will be my superset from which the user must provide mandatory properties and may provide the optional ones. I am trying to generate an XSD schema. I ran the following command XSD C:\w...

WYSIWYG View Editor in 'Android'?

Duplicate: Is there any form designer available for Google Android? I would like to move a CheckBox, so it displays in a different location than the top-left corner under Absolute Layout inside main.xml, for 'Android'. I'm using Eclipse to edit my views. How would I do this? On an iPhone they have a tool called Interface builder ...

What is the best approach for handling a complex form in html?

I need to implement a webform (JSP, struts) featuring loads of checkboxes and textfields. Basically I have a tree made of checkboxes which has to be extendable (like adding a new node). On another page the same data is used, but refined. So you add again child nodes to the mentioned data structure using textboxes etc. I can describe the ...

How can I print single quotes around attribute values instead of double quotes with the javax.xml.transform.Tansformer class?

I have the following function: private static void prettyPrint(Document doc, File destFile) { TransformerFactory tfactory = TransformerFactory.newInstance(); Transformer serializer; try { if( !destFile.getParentFile().exists() ) { destFile.getParentFile().mkdirs(); } serializ...

C# - Deserialize a class with an internal constructor

I am working on a drag and drop system for my WPF App. The way it works is: I take the dragged Item Serialize it to xml When it gets dropped I deserialize it again. This worked fine in my test app. However, now that I am trying to do it in my real app, I have hit a snag. The class I am trying to deserialize (Microsoft.TeamFou...

Add a wrapper div to XSL XML

I have the following XSL translator that is is being used to generate some XHTML. The generated XHTML is then parsed as XML in C# so it can be injected into another XHTML document. The trouble is that the XHTML that is outputted from the XLS does not have a root XML node, just sibling nodes (< table > elements). I tried adding the div...

Multi table programmatic merge to ODF document file

I had built a custom XML merge with Microsoft Word 2007 using the docx format, allowing the user to access fields expressed in a schema and include them in a Word DocX. I then opened the file, did the search/replace throughout the document, closed it up and opened it, fully merged, in Word. With the patent suit loss, new users of our so...

XML and C# - Help pulling information from a certain element.

So I don't know how to exactly word it, but here it goes. Right now my Application can pull the information about the User's from the XML without problem. Sample XML: <statuses type="array"> <status> <id>ID1</id> <text>Text That I want to pull 1</text> <user> <name>User1</name> <screen_name>User1_Screen</screen_name> <...