|
Dear All,
It is displayed properly on a XP machine. But it is not displayed on a 98 machine, although I have installed the font.. I would like to know what are the things does the Unicode display depend on?
Please help me out.
|
|
|
|
|
|
Hi,
I have a class that has all the relavent attributes in order to serialise it to an xml doc, but I do not wish to include the namespace declaration, that is added by default, is there a way to prevent this?
|
|
|
|
|
hi,
can anyone let me know how the instance can be generated from schema
programatically using C# on VS2003.
This is the code i am using to retrieve the attributes.This part of the code is not executed as the attribute count is ZERO.
if(elem.ElementType is XmlSchemaComplexType)
if (ct.AttributeUses.Count > 0)
{
IDictionaryEnumerator ienum = ct.AttributeUses.GetEnumerator();
while (ienum.MoveNext())
{
XmlSchemaAttribute att = (XmlSchemaAttribute) ienum.Value;
Console.Write("Attribute: {0} ", att.Name);
}
}
}
please help
Thanks in Advance
vinutha
|
|
|
|
|
<a>
<b>b</b>
<c>c</c>
</a>
If I get Element A , and want to get element b from A.
How to do?
Thanks!
|
|
|
|
|
There is no element A, XML is case sensitive. The XPAth /a/b will get element b. /a will get a, and /b will get b from a. The question is, how are you accessing it ? If I know that, I can give you some code. The DOM has a SelectSingleNode method, which is what you would use here.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hi there,
I'm working on a small/quickshot web project and I would like to store the (globalized) text content of the page in an xml file. Before I actually start with this approach, I'm wondering how someone would store html-tags within an xml node so that the parser doesn't freak out.
thanks in advance!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
if your html is XHTML (or at least well formed) then you don't have a problem... If it is not (e.g unclosed tags) you can use CDATA sections.
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
|
Every element is node, but not every node is element For example <!CDATA[ ]> is node, but not element. Hmm maybe this hierarchy[^] will make it clearer (XmlLinkedNode derives from XmlNode )
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
I have one node that contain number say NoofMonth
and one node that contain AmountPerMonth
now
i want to display based on no of months that amount
like if NoofMOnth =5
Amountpermonth=100
then i want to display 100 100 100 100 100
for(i=NoofMonth;i>0;i--)
{
<xsl:value-of select="Amountpermonth">}
how to using XSL
Nishant
|
|
|
|
|
You can't do that with xsl:for-each, as that'll only loop over a node-set.
Easiest way would be to use a recursive template:
{in your main template}
<xsl:call-template name="DoAMonth">
<xsl:with-param name="Count" select="NoofMonth"/>
<xsl:with-param name="What" select="AmountPerMonth"/>
</xsl:call-template>
{rest of your main template}
<xsl:template name="DoAMonth">
<xsl:param name="Count"/>
<xsl:param name="What"/>
<xsl:if test="$Count>0">
<td><xsl:value-of select="$What"/></td>
<xsl:call-template name="DoAMonth">
<xsl:with-param name="Count" select="$Count-1"/>
<xsl:with-param name="What" select="$What"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
Stuart Dootson
'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
|
|
|
|
|
Below is the sample xml analgous to mine,
"=============
<code><INVENTORY>
<BRANCH CODE='BC1'...>
<DEPTS>
<DEPT CODE='DC1'>
<EMP NAME='A' ...>
<EMP NAME='B' ...>
</DEPT>
<DEPT CODE='DC2'>
<EMP NAME='E' ...>
<EMP NAME='F' ...>
</DEPT>
</DEPTS>
</BRANCH>
<BRANCH CODE='BC2'>
...
</BRANCH>
</INVENTORY>
</code>==========="
Now, I am trying write a function which says an employee with name xxx belongs to Dept xxx or not? taking two parameters, <code>DEPT_NODE</code> and <code>EMPNAME</code> as parameters. I can not change the signature as its from top.
how to write an Xpath query for that?
Thanks for anticipation.
Regards.
MaulikCE
<pre></pre>
i don want
|
|
|
|
|
bool isInDepartment( string department, string employee );
XpathDocument doc= new XPathDocument();
doc.Load( ... );
XPathExpression exp = new XPathExpression( string.format("//DEPT[@name={0}]/EMP[@name={1}]", department, employee) );
return !( null == doc.SelectSingleNode( exp ) );
Or better take a look at SelectSingleNode[^].
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
Thanks David,
My requirement is little different, I have reference to DEPT node so I have to search relatively from DEPT as other branches may also have same departments.
In terms of code,
bool isInDepartment( XmlElement eleDept, string employee );
What could be the XPath query for this?
|
|
|
|
|
If you can't work out your xpath from the help dnh gave you, then I really suggest you go and buy an xml book and read it. At the very least, run through the w3schools tutorial http://www.w3schools.com/xpath/default.asp, which will take you all of 5 minutes, rather than want someone else to write your code for you.
using System.Beer;
|
|
|
|
|
Hi Friends,
I want to display the following xml data in datagrid using dataset and dataview and to add new account and update existing account using dataset and dataview.
Can any plz help regarding this????
<Account>
<AccountNo>1241111</AcountNo>
<HolderName> james smith </Holdername>
<HolderAddress>
<StreenNo>12th main</StreetNo>
<Area>Koramangala</Area>
<City>Bangalore</City>
</HolderAddress>
<HolderPanNo>12514711-55</HolderPanNo>
<HolderStatus cheque="No">
<Balance>500000</Balance>
<Credit>1500000</Credit>
</HolderStatus>
</Account>
Thank all of u in advance
|
|
|
|
|
hii all;
i got a very serious problem.
there is two processes that access (read/wite) xml in same time how can i control this without exceptions,with good preformance.
marcoryos
|
|
|
|
|
If they read and write the same file at the same time, they can't do that at all.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
What about these processes? Do you have theirs source code??
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Hey
I used anchor element in xsl page, What i faced is only one value is passed at a time. How can i pass multiple values in querystring & How can i append the values to the querystring. I used xsl variables, but i can't get the multiple values. [Datas are retrived from XML Document ]
Aravind
|
|
|
|
|
i don't know.if u know .plz inform to stu_cs@yahoo.com
|
|
|
|
|
Hi friens:
Can you tell me how include a picture in a web service ?????
Thanks a lot
|
|
|
|
|
The image needs to be serialised and send as a CDATA tag.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Dear Friends,
I have and XML File and am binding that xml file to a datagrid using dataview with a check box to select the row to update or delete.
In the event of check box I used to find row from dataview using sort property and find() method.
But I got the row number more than one than the actual one.
e.g. when I got rowno = 1 as a result of find method, in dataview that row is actually at postition 0. so every time next row of the actual row is deleted or modified.
So if anyone have the solution of this then plz send it to me quickly .
Thanking u in advance
Chetan Ranpariya
|
|
|
|