clyde mel

Greenhorn
+ Follow
since Mar 05, 2002
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by clyde mel

r the above topics part of the exam.if yes,then kindly give me links to some tutorials on these stuff.
Thanx
r the above topics part of the exam.if yes,then kindly give me links to some tutorilas on these stuff.
Thanx
The xml file is given below.How do I retrieve the name value(unique).
so the output should be
Minnie
Donald duck
Pluto

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="mock2test.xsl"?>
<HumanResources>
<Employee department="Personal">
<Name>Minnie</Name>
<Age>20</Age>
<Sex>Female</Sex>
<Salary>3500USD</Salary>
</Employee>
<Employee department="Finance">
<Name>Donald Duck</Name>
<Age>45</Age>
<Sex>Male</Sex>
<Salary>6000USD</Salary>
</Employee>
<Employee department="IT">
<Name>Pluto</Name>
<Age>22</Age>
<Sex>Male</Sex>
<Salary>4500USD</Salary>
</Employee>
<Employee department="IT">
<Name>Donald Duck</Name>
<Age>25</Age>
<Sex>Male</Sex>
<Salary>4000USD</Salary>
</Employee>
</HumanResources>
anyone from mumbai.will be giving the exam this week.just wanted to meet and discuss some stuff
on XML which i am weak on.
i will be taking my certification next week.i still think that i need to on xml architecture along with xslt,xpath and dom.I think these r the areas where i need to put more effort.I just wanted to get help as how should i go about with these topics.i have done all the mock exams and available stuff on xml,still the confidence in the above topics is on a average which i need to sort out.I will really be thankful for all your suggestions and inputs coz i need to clear this exam in my very first attempt.Just that i want to be confident and optimistic form my side.
Can anyone just explain the main difference between the embed and replace used in xlinks.Just a bit confused regarding these terms.
Can anyone provide links to xml signature and encryption.
i am new to ejb stuff use on weblogic5.1.can anyone help me out with how do i go about writing simple beans and then deploying them on the server.If its a step by step process it would really be gr8.Plz help
20 years ago
I know that the code super.add() is one of the options.But without doing any modification in the code is it possible to print hello thru the object of subclass.State reasons.Thanx
How do I access the superclass method using the object of a subclass.
eg:
class a
{
public void add()
{
System.out.println("hello");
}
}
class b extends a
{
public void add()
{
System.out.println("hello1");
}
public static void main(String arg[])
{
a a1=new a();
b b1=new b();
thru b1 i want to print hello.coz when i call b1.add(),method overriding will take place.Plz help.
Can anyone please guide me thru training centres in mumbai for XML certification.i have done the stuff till XSL,but still don't have the confidence coz the certification seems to be tough.I know tutorials,links etc r helpful,but I don't want to take any chances.Want to be pretty sure with clearing this exam in my first attemp.Will really appreciate of any help from all of u.
Which is the book other than professional xml 2'nd edition that covers most of the syllabus for the certification?Also I needed to start working with saxon and xml4j.How do i start of with.Any tips with types of examples that may be of any help.
How do I use the IBM's XML4J for testing the files below.I also have the jaxp and the jdk 1.3 version.

xml file : (saxxml.xml file)
<?xml version="1.0"?>
<players>
����
<player> ������
��<name>Sanjay</name> ������
��<form>Batsman</form> �������
� <NrOfMatches>1</NrOfMatches> �
���</player>
���
�<player> ��������
<name>Kapil</name> �����
�<form>Bowler</form> ����
�<NrOfMatches>3</NrOfMatches> �
�</player>
����
<player> �������
�<name>Purvesh</name> ��������
<form>All rounder</form> ������
�<NrOfMatches>2</NrOfMatches> ��
�</player> �
���
<player> �������
�<name>Pradeep</name> �������
�<form>All rounder</form> ���
�<NrOfMatches>1</NrOfMatches> ���
�</player>
</players>

.java file
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.Attributes;
import java.io.*;
public class Processor extends DefaultHandler {
��private PrintWriter fout; ��
�public Processor() throws IOException ��
��{ ��������
fout = new PrintWriter(new FileWriter("HTMLOutput.htm"));
��} ���
�public void startDocument() ����
{ �����
���fout.println("<HTML>"); ���fout.println("<HEAD><TITLE>SAX example</TITLE></HEAD>"); ���fout.println("<BODY>"); ���
} ���
�public void endDocument()
����{ �������
�fout.println("</BODY></HTML>"); ����
����fout.close(); ����
} ����
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) ���
�{ ����
����if (localName.equals("players")) ������������fout.println("<TABLE BORDER = '1' CELLPADDING = '5'>"); ��������else if (localName.equals("player")) ��������������{ ������������������fout.println("<TR>"); ������������
��} �������������
�else ���������
�����{ ����������������
��fout.println("<TD>"); ������������
��} ���
�} ���
�public void endElement(String namespaceURI, String localName, String qName) ���
�{ �������
�if (localName.equals("players")) ���������fout.println("</TABLE>");
��������else if (localName.equals("player")) �������������
���{ �������������������
�fout.println("</TR>"); �����������
�����} ����������������
else �������������
���{ ����������
����������fout.println("</TD>"); ������������
����} ��
�} ��
��public void characters (char ch[], int start, int length)
����{ �������
�for (int i = start; i < start+length; i++) ������������fout.println(ch[i]); ��
��}
}

Conversion .java file :
import org.xml.sax.Parser;
import org.xml.sax.DocumentHandler;
import org.xml.sax.helpers.ParserFactory;
import java.io.File;
public class convert
{
���static final String parserClass = "com.ibm.xml.parsers.SAXDriver";
����// using IBM’s XML parser ���
�static final String xmlfile = "saxxml.xml";
��public static void main (String args[]) throws Exception �
�� { ����
���Parser parser; ���
���DocumentHandler handler; ���
���parser = ParserFactory.makeParser(parserClass); ���handler = new Processor(); ���parser.setDocumentHandler(handler); ���parser.parse(xmlfile); ��
�� }
}
Why is the output not getting displayed.The output should be Joe Smith.
Can anyone please explain the template match in details.I am using ie6 as the testing browser.I also have jaxp and IBM'S XML4J.How do i use
to test these xsl stylesheets.
xml file :
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="testxsl.xsl"?>
<source>
<employee>
<firstName>Joe</firstName>
<surname>Smith</surname>
</employee>
</source>
-------------------------------------------------------------
xsl file :
<?xml version='1.0' encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="employee">
<b>
<xsl:value-of select="."/>
</b>
</xsl:template>
<xsl:template match="surname">
<i>
<xsl:value-of select="."/>
</i>
</xsl:template>

</xsl:stylesheet>