I want to diplay an image so that it takes up a minmum width of the screen and should scale in its aspect ratio (the image width might be smaller or larger than the minimun width) I also want to have a fixed size border around this image. This is my xml section for it:
<ImageView
android:id="@+id/detailed_view_boxArt"
an...
Question:
I use a serializable dictionary class, found at
http://weblogs.asp.net/pwelter34/archive/2006/05/03/444961.aspx
, to serialize a dictionary.
It works fine with the example class below.
<System.Xml.Serialization.XmlRoot("ccl")> _
Public Class ccl
<System.Xml.Serialization.XmlElement("name")> _
Public xx As String = ""...
Question: I use a serializable dictionary class, found at
http://weblogs.asp.net/pwelter34/archive/2006/05/03/444961.aspx
, to serialize a dictionary.
Which works fine, but I run into an annoying problem.
<System.Xml.Serialization.XmlRoot("DataBase")> _
Public Class cDataBase
<System.Xml.Serialization.XmlNamespaceDecl...
Hi,
I have a bunch of XML files that have a flat hierarchy, but each contain a differing amount of (uniquely named) nodes. Example:
<?xml version="1.0" encoding="UTF-8"?>
<SomeName>
<Node1>
DataA
</Node1>
<Node2>
DataB
</Node2>
<Node3>
DataC
</Node3>
<AnotherNode1>
DataD
</AnotherNode1> ...
So I have an XML file (XML export of a MS Word file). What I am just trying to do is to replace these two lines:
<w:t>Meno:</w:t>
And:
<w:t>Priezvisko:</w:t>
This is a longer XML excerpt:
<w:p w:rsidR="00CF175F" w:rsidRDefault="00CF175F">
−
<w:r>
<w:t>Meno:</w:t>
</w:r>
</w:p>
−
<w:p w:rsidR="00CF175F" w:rsidRDefault="00CF175F">
−...
I have about 50 XSD files that are really badly formatted.
I know if I open them all in Visual Studio, I can beautify them one by one.
My question is: Is there a way to command line beautify them or some way I can do this in bulk?
...
Hi,
I'm using:
<xsl:template match="material_id | location_code"></xsl:template>
To get rid of elements in the source XML called material_id and location_code, but whitespace lines remain, leaving an output XML something like:
<entries>
<Identity>conflab1</Identity>
<price>24.36</price>
<pricedate>15-Jul-2010 13:35:18 ...
I get a NotSupportedException when I parse the following string with an XElement:
<ref>S. L. Vartanyan*, V. E. Garutt† & A. V. Sher‡parallel, "Holocene dwarf mammoths from Wrangel Island in the Siberian Arctic", Nature 362, 337 – 340 (25 March 1993) [http://www.nature.com/nature/journal/v362/n6418/abs/362337a0.html Nature.com]</ref...
i've got a simple xml file (called by ajax) that contains only:
<result>1</result>
with jquery, i can get the value (1) of result?
thanks!
Rob
...
I'm using groovy.xml.MarkupBuilder to create XML response but it creates prettyprinted result which is unneeded in production.
def writer = new StringWriter()
def xml = new MarkupBuilder(writer)
def cities = cityApiService.list(params)
xml.methodResponse() {
resultStatus() {
r...
Hi,
I have a String that I'm passing to log4j to have it logged to a file, the contents of that string is XML, and it is formatted to be on multiple lines with indentations and so forth, to make it easy to read.
However, I would like that XML to be all on one line, how can I do this? I've had a look at StringUtils, I guess I could stri...
Hi there i try to extract specefic data from xml feed from youtube.
XML link: http://gdata.youtube.com/feeds/api/videos/WFPnl8aEPgo?alt=rss
I'v been able to extract info like:
using this query string:
Dim Title As String = videoInfoNavigator.SelectSingleNode("/item[1]/title").Value
however i'd like to get info of this:
What wou...
I'm using an XML Catalog with a CatalogManager.properties file which is in a JAR containing all schema files.
Normally, this works well, and the schema file can be resolved using the XML catalog and the system ID. At least it does when I work with Eclipse locally.
However, when I deploy that JAR to JBoss (within an EAR), the CatalogMan...
I having trouble posting XML to a payment gateway using PHP.
The gateway (PSiGate) gives this sandbox url to POST XML to: https://dev.psigate.com:8645/Messenger/AMMessenger
Here the code:
if (isset($_POST) && $_GET['task'] == 'new') {
$dealer = new Dealer($USER->getDealerId());
$contact = $dealer->getContact();
// new PSiG...
The available PostgreSQL material on XML, XSLT and XPath is limited. There are the official docs from the PostgreSQL team, however these cover only a few pages of content and I've never been convinced that their docs are as comprehensive as they could be.
There are also some bits and bobs on sites kicking around, however there is not to...
Hi,
I have a page which receives xml from another web site, so I have no control over the xml. It is returning a list of Accounts. Specifically, QuickBooks accounts. These accounts can have children. However, there isn't a "has child" attribute, only a "has parent" attribute. In other words, if you look at an account you could tell that...
I am trying to use nokogiri to parse the following segment
<tr>
<th>Total Weight</th>
<td>< 1 g</td>
<td style="text-align: right">0 %</td>
</tr>
<tr><td class="skinny_black_bar" colspan="3"></td></tr>
However, I think the "<" sign in "< 1 g" is causing Nokogiri problems. Does anyone know any workarounds? Is there a...
I have two Image Views that are two football helmets facing each other. I'm wanting to center them and then offset them left/right a little to provide a little space between them. Here is one of the image view's xml at the moment.
<ImageView
android:id="@+id/hometeam"
android:scaleType="centerInside"
android:layout_width="fil...
Working on an API but I've run into a problem.
This specific part of the response (in XML) returns a URL. Here's the error I'm getting:
XML Parsing Error: not well-formed
<item_to_page_url>http://cnn.com/.../?hpt=C2&replytocom=11119#respond</item_to_page_url>
First off, I added an ellipses to shorten the length of that for...
hello everyone ,
i have an xml file "Machine.xml" it contains:
<Parameter name="host" value="localhost"/>
<Parameter name="port" value="5900"/>
i would like to change both parameters values using a php script... how can i do that?
i mean i want the script to change host's value for example to : value="7.3.4.5" and
port value to...