Win a copy of Head First Android this week in the Android forum!

Badal Kotecha

Ranch Hand
+ Follow
since Sep 06, 2000
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 Badal Kotecha

hi Bhargavi!
goto xfront.com and download XML Schema ppts from there written by Mr. Roger
There are 2 ppts and 192 slides in one of the them its worth reading it.. it will clear all ur concepts provided u should do proper lab exercises as mentioned there..
cheers
Badal
www.necoinfotech.com
Hi !
Weg answers to ur questions...
1. Determine the implications of a given architecture on XML design considerations
>>>>>>>>>>
Refer : http://www.xmltimes.com/knowledge/sponsored/ibm1/
this might help u in understanding the design considerations..
Let me know if u find some similar kind of case studies..
2.Select appropriate XML technologies for an architecture (XML Schema 1.0, XSLT 1.0, DOM2, SAX2, XPath 1.0, Namespaces, DTDs)
>>>>>>>>>>
This is very weg.. depends on ur technological knowledge but certainly u can say use XML Schemas over DTD and for XSLT anyway u need to know XPATH expressions and furthermore go thr differences betn DOM and SAX and determine as per your convenience...
3.Design functional components and interconnections for an XML application architecture
>>>>>>>>>
this i think is more related to data exchange between various componenets or may be subsystems.
For this i think SOAP Messaging or XML RPC would be helpful... I m not sure...
4.Assess performance trade-offs related to parsing, validation and transformation
>>>>>>>>>
This is nothing but pros n cons of using DOM and SAX over each other, Adv of XSLT, Document validations using XML Schema / DTD.
5.Know basics of Web Services (SOAP, WSDL, UDDI)
>>>>>>>>
This is all about web services for this refer w3c..
6.Address XML security using XML encryption and XML signature
>>>>>>>>
For this refer:
XML Security..
===============
1. http://www-106.ibm.com/developerworks/library/s-xmlsec.html
2. http://www.alphaworks.ibm.com/tech/xmlsecuritysuite
3. http://www.w3.org/Encryption/2001/Minutes/0720-Redwood/simon-outline.html
XML Signatures
==============
1. http://www.xml.com/pub/a/2001/08/08/xmldsig.html
2. http://www.w3.org/TR/xmldsig-core/
XML Encryption
==============
1. http://www.w3.org/TR/xml-encryption-req
Let me know if u have any more resources.
njoy
Badal
www.necoinfotech.com
hi neha !
me too preparing for the same..
As i heared from various frens, discussions forums and certification requirements there is considerable waitage on xlink and xpointer.
Though I dont know how much is the waitage its better to go thr them becaz ... what i found is lot of people finding it difficult to clear or to make a good score so just have a look at them and let me know if someone tells u about the waitage on all those stuff and even if u get some articles on it.
Let me know when r u appearing for the exam..
njoy
KIT
Badal
www.necoinfotech.com
What the hell is this error.. !
Can anyone tell me why is this happening... ?
The same program which was working earlier.. is not working now... n giving me this error.
Can anyone tell me the cause ??
I have gone thr the documentation it says...
"Thrown when an incompatible class change has occurred to some class definition. The definition of some class, on which the currently executing method depends, has since changed. "
I am not getting anything out of it... can anyone help me out...
Its urgent...
Ur help will be highly appreciated
Thanks
Badal
www.necoinfotech.com
19 years ago
Hi all !
I want to extract information from the XML document depending on values of particular element between some range.. say get me the information where somedate (element) between date1 and date2 (typical SQL Scenario)
1) how do i write the xml-schema for this type of elements ? specifically i m interested in the type of this element.
2) How do i write the xpath query to compare dates..
3) What if my parameter values also contains time factor in some format say.. get me information for somedate (element) between '01-jan-2002 10:00' to '26-jan-2002 23:59'
How do i do it ???
Thanks in advance..
Badal
www.necoinfotech.com
I got the same problem...
when i m using xalan-j 2.2 xpath queries on xml document which is refering some xml schema is not working..
has anyone used ApplyXPath application provided with xalanj-2 2.2 .. its not working with schema... ?
Its working fine with DTD...

y is that so.... ?
ur help is highly appreciated....
thanks in adv.
Badal
www.necoinfotech.com
Hi all !
I want to extract information from the XML document depending on values of particular element between some range.. say get me the information where somedate (element) between date1 and date2 (typical SQL Scenario)
1) how do i write the xml-schema for this type of elements ? specifically i m interested in the type of this element.
2) How do i write the xpath query to compare dates..
3) What if my parameter values also contains time factor in some format say.. get me information for somedate (element) between '01-jan-2002 10:00' to '26-jan-2002 23:59'
How do i do it ???
Thanks in advance..
Badal
www.necoinfotech.com
Congrats Niharika...!
Thats a gr8 achievement..!
I have some questions...
1) Whats ur score in XML test.. ?
2) What was ur score in SCJP ??
3) How much do u rate urself in XML before starting preparation for certification ... ? asking becaz i m new to XML
4) have u gone through articles from "Roger L. Costello" about XML Schema and XSLT... ? If Yes how did u found it from certification point of view.. ?
Thanks and congrats once again
Badal
www.necoinfotech.com
hi arathi !
If u got to know anything about it then plz let me know...
I m also very much interested in XML certification...
Thanks
Badal
www.necoinfotech.com
Hi hema !
I also searched on the IBM Site but didnt find any information about centers in mumbai / pune (india).
if any of u got any relevant information about it then plz let me know as well.....
1) About mumbai center.
2) Fees
3) Avg score in XML Certiciation till now..
4) Any helpful URLS

Thanks
Badal
www.necoinfotech.com
Hi all !
I want to extract information from the XML document thr DOM object depending on some date parameters say get me the information between date1 and date2 (typical SQL Scenario)
1) how do i write the xml-schema for this type of elements ? specifically i m interested in the type of this element.
2) How do i write the xpath query to compare dates..
3) What if my between clause also contains time factor in some format say.. get me all the elements whose date is between '01-jan-2002 10:00' to '26-jan-2002 23:59'
How do i do it ???
Thanks in advance..
Badal
www.necoinfotech.com
hi all !
I think everyone has got confusion with my question number 3.
Ok let me elaborate it..
Whenever i add some new element to the xml document i want its id attribute(i have mentioned type of this attribute as id) to be generated automatically somehow ...! presently i m doing it by navigating to the last element and getting the id and adding 1 to it n i didnt liked this way...
Is there any inbuild funtion in xpath to get the next id .. ?
I think Mapraputa has got it little bit but till now I havent gone through his/her links ...
Thanks
Badal
www.necoinfotech.com
Hello all !
I have few very basic doubts on XML and its processing
1) What is the role of any parser.. ?
- Does parsing means validating an xml document for well formed ness and whether its according to ther referred schema... ?
2) Is there any API by which adding an element in my DOM object should reflect in the underlying XML File without doing print and write operations on that document object thr API. Why this question has been arised in my mind is because whenever we use write or print on particular dom object it writes the whole dom object to a file. why this should happen ? It should update only that part of the file.. right.. ?
3) Can I generate Ids automatically for new elements through XPATH if type of that element i have mentioned is ID in XML Schema... ?
Please guys ur help will be greately appriciated...
Hurry up ur replies... asap
c ya
take care all of u
Badal
www.necoinfotech.com
Hi paul !
check out the following sample code
I hope this helps u ..
I m using apache soap 2.2 implementation
and my webservice for adding numbers is written in VB.NET
import java.io.*;
import java.net.*;
import javax.xml.parsers.*;
import org.w3c.dom.*;
import org.xml.sax.*;
import org.apache.soap.*;
import org.apache.soap.messaging.*;
import org.apache.soap.transport.*;
import org.apache.soap.util.xml.*;
import javax.mail.*;
/**
* This class sends a message by taking in an XML file that has a full
* SOAP envelope in it and dumping it to the given message router URL.
* Any content from the response is dumped to stdout.
*
* @author Sanjiva Weerawarana <sanjiva@watson.ibm.com>
*/
public class AddNumbersClient {
public static void main (String[] args) throws Exception {
// get the envelope to send
FileReader fr = new FileReader ("AddNumbers.xml");
DocumentBuilder xdb = XMLParserUtils.getXMLDocBuilder();
Document doc = xdb.parse (new InputSource (fr));
if (doc == null) {
throw new SOAPException (Constants.FAULT_CODE_CLIENT, "parsing error");
}
Envelope msgEnv = Envelope.unmarshall (doc.getDocumentElement ());
// send the message
org.apache.soap.messaging.Message msg = new org.apache.soap.messaging.Message ();
msg.send (new URL ("http://localhost/AddNumbers/AddNumbers.asmx"), "http://tempuri.org/AddNumbers", msgEnv);
// receive whatever from the transport and dump it to the screen
System.out.println ("RESPONSE:");
System.out.println ("--------");
SOAPTransport st = msg.getSOAPTransport ();
BufferedReader br = st.receive ();
String line;
while ((line = br.readLine ()) != null) {
System.out.println (line);
}
}
}

And hers is the soap message... (this is hardcoded... u can generate it dynamically)
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
<s:Body>
<AddNumbers xmlns="http://tempuri.org/">
<i>40</i>
<j>70</j>
</AddNumbers>
</s:Body>
</s:Envelope>
Cheers
Badal
www.necoinfotech.com
19 years ago