JiaPei Jen

Ranch Hand
+ Follow
since Nov 19, 2000
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by JiaPei Jen

Sometimes, I have to check out the code of the same project from the Repository to another folder; say, Folder B rather than Folder A, on my local disk.

In Eclipse, how do I switch to the Folder B?

I understand that I can do File --> Switch Workspace; however, if I go to another workspace, I have to configure server, etc., in that workspace.

How do I use all the same settings already configured for the Folder A but work on the code in the Folder B? Thank you.
If I am not terribly wrong, JAXB2 works with JDK 1.5.X.

When I use JDK 1.6.0 with JAXB2, I run into many problems.

If any Java Rancher knows how to get around the problems, please post solutions. Thank you.
Is this the right approach? -- Convert the Java bean object to XML using JAXB, and then use XSLT to convert this XML to the format I actually want.

Please correct me if I am wrong - JAXB “forces” the Java class to use the exact element names defined in the target XML file. However, the element names in target XML file may not be exactly the same as those defined in the data model. XSLT enters the picture because XSLT can do element to element mapping.
Nobody is dishonest.

The entire development team is entering a new territory. None of us is expected to know the technology. However, nobody is supposed to take it slowly.
Thanks for your feedbacks.

I cannot take it slowly. I have a task at work to perform. I have gone through a quick JAXB tutorial.

The XML file to which I convert the data, which are either in text or in bean, has its own schema. Do you have any suggestion of the technology to use? Is it the XSLT processor? Are there any code examples?

Thank you.
I am really new to XML technologies and need lots of quidance.

If I have some data that come in the format shown below (only one record is shown):

1. What technology I should use to convert that record to a XML file?
2. Is there an example I may see and study?

Thank you.
I try to convert java beans to the hData for presentation. The hData is a XML file based on the C32 Schema. I think that there is no need to introduce the C32 schema. Anyway, it is a schema.

1. What is the approach to perform this task? Use JAXB first and then the XSLT processor to do the mapping?
2. If someone could show me JAXB and XSLT mapping examples to carry out the task? Or where I may find examples to practise because I am new to those technologies.

Thank you very much.

At least with a wedding, we know how it ends.

Jeanne, do you mean "how a wedding ends" or "how a marriage ends". A wedding typically ends with a reception and followed by a honeymoon. A marriage ends in various ways. It is like hitting a lotto jackpot to find a "perfect" match. People do not divorce simply accept and live with the mistake they made.
12 years ago
Love does exist. About this time of the year more than two thousand years ago, Jesus was crucified out of love to save us. True "love" has been defined in the Holy Bible:

Corinthians 13:4-8

4 Love is patient, love is kind. It does not envy, it does not boast, it is not proud. 5 It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs. 6 Love does not delight in evil but rejoices with the truth. 7 It always protects, always trusts, always hopes, always perseveres.

12 years ago
I saw this statement: If a type is declared final="restriction", it can be extended but not restricted. If the final attribute equals "#all", the type cannot used as a base type at all.

Therefore, I suppose that if a type is declared final="extension", it can be restricted but not extended. However, some code (see below) looks like extending while the type is declared final="extension". I am confused. Please help. Thank you.

Thanks very much for your help.
In the two snippets, one is schema and the other is a XML document, shown below, why a new namespace "po" is created in the XML document? The URI for "po" is the same as that of "mh". Can we use "mh" in the XML document? Or can we not to create a namespace in the XML document? Thank you.