I have an xml feed supplied by one system which is used by another system and both of them (at the moment at least) are located on the same physical server.
In this case would using gzip to encode (large) xml responses slow things down or speed it up, or maybe wont make any difference.
...
I have a series of xml messages, all with their own schemas and namespaces. The messages are currently marshalled using JAXB (we still live in a Java 1.4 environment) and we have a large amount of legacy code using this JAXB code so any solution needs to be minimally intrusive.
My problem is that while each of the messages has a set of...
How do I convert the processing instruction elements into normal XML element using Perl?
for example:
<?legalnoticestart?>
<?sourcenotestart?>
<para>Content para</para>
<?sourcenoteend?>
<?literallayoutstart?>
<?literallayoutend?>
<?literallayoutend?>
<?legalnoticeend?>
Required format:
<legalnotice>
<sourcenote>
<p>Content para</p>...
How to convert XML xpath as case insensitive?
XmlNodeList elements = mConfig.SelectNodes(path);
path can be - Config/Setting/Name or config/setting/name
...
First, this problem is on my local testing site; the live site is okay.
I have a site where there is a link to blah.com/sitemap. In the DocRoot there is a file called sitemap.xml, which I don't want to display in response to that link. There is a rewrite rule in /.htaccess:
RewriteRule "^([a-z]{1}[\w_\-]+[a-z]{1})$" "/index.php?action=...
I've been given a seemingly simple task.
When a given URL is requested the response should simply be some valid XML.
How do I achieve this.
The url will contain all the necessary code behind to get the data and construct the correct XML string. How do you then go ahead and manipulate the response to return this string only. The calle...
I'm currently pondering my options for the following problem:
I have a (relatively) simple but often changing configuration file for my application which I want users to be able to edit and change without have to "understand" xml. I do not want them to have know anything about encoding or understand that they have to close every node th...
Xpath question:
When to use @ with an attribute and when not to. Does it matter? What is the difference
...
I am Developing a Web Service using WCF.It is an interoperable Web Service.Now i am consuming this Web Service from a Java Client.now when i created the proxy class.It created all getter & setter method.now in that proxy class it created a JAXBElement field.I searched for it in jdk api for it.and found constructor.
JAXBElement(QName na...
Is there a way to force XML elements generated from XML serialisation to be ordered in the same way as defined in the object class?
i.e.
class SerializableClass
{
[XmlElement("Element.1")]
public List<string> Element1
{
get { return _Element1; }
set { _Element1 = value; }
}
private List<string> _...
Hi, i need to create a dynamic SQL statement that selects fields based on an XML parameter.
Say i have a stored proc with 1 param - [@FIELDS XML] that contains field names. eg...
Field 1 = Name
Field 2 = Address etc...
..in reality there would be up to 50 fields and i only want to report on the ones in the XML parameter.
how can i m...
I have some XML files and schemas that I would like to document. Everything for this project is documented using NetBeans UML models, Microsoft Word documents, Microsoft Excel spreadsheets, and Microsoft Visio drawings. I'm a fan of self-documentation, but this isn't my choice - external documentation must be produced. How can I depict t...
Hi, I'm making a tool to create some xml files signed, and I need to use an XPath so my sign doesn't sign itself :
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
<ds:XPath>not(ancestor-or-self::ds:Signature)</ds:XPath>
</ds:Transform>
<ds:Transform Algorithm="http://www.w3....
I am enhancing our web framework to use web services and one of features I would like is the ability to view XML that has been submitted. I am using our Java servlet to launch a popup and serve the XML and this works - in IE7 I get the expected behaviour when of a nicely formatted and folding view of the XML. The problem is if I select '...
I'm supprized that I couldn't find this question here. there seems to be few approches out there but none really seem to work. I found http://james.newtonking.com/projects/json-net.aspx but it very large. Is there a simple way to convert Xml to Json and vice versa?
Thanks,
...
I want to take an XML file as input and output the same XML except for some search/replace actions for attributes and text, based on matching certain node characteristics.
What's the best general approach for this, and are there tutorials somewhere?
DOM is out since I can't guarantee being able to keep the whole thing in memory.
I do...
How do I scrape html tables using the XML package?
Take, for example, this wikipedia page on the Brazilian soccer team. I would like to read it in R and get the "list of all matches Brazil have played against FIFA recognised teams" table as a data.frame. How can I do this?
...
Hi All,
I'm about to embark on a new project within which we require the ability to re-use validations based on (preferably XML) on both the client and server.
We would setup a service to provide the XML validation configuration data to the client side.
The following is not meant to be inflammatory in any way.
The Enterprise library...
Is there a simple example somewhere of using Xerces XNI? I'm looking at the sample code and can't make heads or tails of what it's doing, and don't want to just cut & paste into my application. For example, I can't figure out how to create an instance of org.apache.xerces.xni.parser.XMLDocumentSource.
...
Heres my code:
XElement navegacion;
public Navegacion()
{
this.navegacion = XElement.Load(HttpContext.Current.Server.MapPath("App_Data/navegacion.xml"));
}
It works just fine when I go to:
http://localhost/Default.aspx
an when I go to
http://localhost/Users
But it cant open the file when I go to
http://localh...