Creating XML Schema, help needed
Hi guys, i have an xml file and i need to create a schema for it, to be able to validate it later.
Here's a part of my xml file:
<cd>
<entry id="01" category="software" type="utils">
<location>/foo/moo/</location>
<title>WinRAR</title>
<version>3</version>
<vendor>ArchiveCorps</vendor>
<size>34</size>
<description>Very good archiving app</description>
</entry>
<entry id="02" category="music" type="folk">
<location>/path/path/path</location>
<artist>Artist Name</artist>
<album>
<name>Name of the album</name>
<year>2001</year>
<content>
<track id="01">Track Name 1</track>
<track id="02">Track Name 2</track>
<track id="03">Track Name 3</track>
<track id="04">Track Name 4</track>
</content>
</album>
</entry>
</cd> In schema i would like to specify that <entry> tag can contain different sets of tags. For example, in case where the 'category' attribute is "music" i want to have one set of elements within <entry>(i.e artist, album, name, year etc.), however when 'category' is "software" i want to have a different set of elements (i.e location, title, vendor, size etc).
How could i express that using schemas?
I created couple of complexTypes:
For Software entry:
<xsd:complexType name="EntryType">
<xsd:sequence>
<xsd:element name="location" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="version" type="xsd:double"/>
<xsd:element name="vendor" type="xsd:string"/>
<xsd:element name="size" type="xsd:double"/>
<xsd:element name="description" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string"/>
<xsd:attribute name="category" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
</xsd:complexType>For Music entry:
<xsd:complexType name="MusicEntryType">
<xsd:sequence>
<xsd:element name="location" type="xsd:string"/>
<xsd:element name="artist" type="xsd:string"/>
<xsd:element name="album" type="AlbumType"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string"/>
<xsd:attribute name="category" type="xsd:string"/>
<xsd:attribute name="type" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="AlbumType">
<xsd:sequence>
<xsd:element name="name" type="xsd:string" default=""/>
<xsd:element name="year" type="xsd:string"/>
<xsd:element name="content" type="ContentType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ContentType">
<xsd:sequence>
<xsd:element name="track" minOccurs="1" maxOccurs="unbounded">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="id" type="xsd:integer"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>But I don't know how to merge those two types, so that i could do something like this (The below code is NOT valid):
<xsd:complexType name="CDType" >
<xsd:choice>
<xsd:element name="entry" type="EntryType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="entry" type="MusicEntryType" minOccurs="0" maxOccurs="unbounded"/>-->
</xsd:choice>
<xsd:attribute name="id" type="xsd:integer"/>
<xsd:attribute name="dateAdded" type="xsd:date"/>
</xsd:complexType>Any ides?
Thanks
Do you have the flexibility to change the content model? If yes, you can either introduce an intermediate level like:
<entry>
<musicEntry>
<artist>Artist Name</artist>
</musicEntry>
</entry>or add an new element to identify the type at the beginning of entry like:
<entry>
<musicType/>
<artist>Artist Name</artist>
</entry>See http://lists.xml.org/archives/xml-dev/200708/msg00067.html
Similar Messages
-
How to Create XML Schema From JTree ?
Please help me... Thank you.
This is Code
Tree.java ----- Run This File
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.tree.DefaultMutableTreeNode;
public class Tree extends JPanel implements ActionListener {
private int newNodeSuffix = 1;
private static String ADD_COMMAND = "add";
private static String REMOVE_COMMAND = "remove";
private static String CLEAR_COMMAND = "clear";
private static String OK_COMMAND = "ok";
private DynamicTree treePanel;
public Tree() {
super(new BorderLayout());
//Create the components.
treePanel = new DynamicTree();
//populateTree(treePanel);
JButton addButton = new JButton("Add");
addButton.setActionCommand(ADD_COMMAND);
addButton.addActionListener(this);
JButton removeButton = new JButton("Remove");
removeButton.setActionCommand(REMOVE_COMMAND);
removeButton.addActionListener(this);
JButton clearButton = new JButton("Clear");
clearButton.setActionCommand(CLEAR_COMMAND);
clearButton.addActionListener(this);
JButton okButton = new JButton("OK");
okButton.setActionCommand(OK_COMMAND);
okButton.addActionListener(this);
//Lay everything out.
treePanel.setPreferredSize(new Dimension(300, 150));
add(treePanel, BorderLayout.CENTER);
JPanel panel = new JPanel(new GridLayout(0,1));
panel.add(addButton);
panel.add(removeButton);
panel.add(clearButton);
panel.add(okButton);
add(panel, BorderLayout.LINE_END);
/*public void populateTree(DynamicTree treePanel) {
String p1Name = new String("Parent 1");
//String p2Name = new String("Parent 2");
String c1Name = new String("Child 1");
//String c2Name = new String("Child 2");
DefaultMutableTreeNode p1;
p1 = treePanel.addObject(null, p1Name);
//p2 = treePanel.addObject(null, p2Name);
treePanel.addObject(p1, c1Name);
//treePanel.addObject(p1, c2Name);
//treePanel.addObject(p2, c1Name);
//treePanel.addObject(p2, c2Name);
public void actionPerformed(ActionEvent e) {
String command = e.getActionCommand();
if (ADD_COMMAND.equals(command)) {
//Add button clicked.
treePanel.addObject("New Node " + newNodeSuffix++);
} else if (REMOVE_COMMAND.equals(command)) {
//Remove button clicked.
treePanel.removeCurrentNode();
} else if (CLEAR_COMMAND.equals(command)) {
//Clear button clicked.
treePanel.clear();
} else if (OK_COMMAND.equals(command)) {
//Ok button clicked.
treePanel.ok();
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
private static void createAndShowGUI() {
//Create and set up the window.
JFrame frame = new JFrame("Craete XML Tree");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
Tree newContentPane = new Tree();
newContentPane.setOpaque(true); //content panes must be opaque
frame.setContentPane(newContentPane);
//Display the window.
frame.pack();
frame.setVisible(true);
public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}DynamicTree.java
import javax.swing.JOptionPane;
import java.awt.GridLayout;
import java.awt.Toolkit;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.MutableTreeNode;
import javax.swing.tree.TreePath;
import javax.swing.tree.TreeSelectionModel;
import javax.swing.event.TreeModelEvent;
import javax.swing.event.TreeModelListener;
public class DynamicTree extends JPanel {
protected DefaultMutableTreeNode rootNode;
protected DefaultTreeModel treeModel;
protected JTree tree;
private Toolkit toolkit = Toolkit.getDefaultToolkit();
public DynamicTree() {
super(new GridLayout(1,0));
rootNode = new DefaultMutableTreeNode("Root Node");
treeModel = new DefaultTreeModel(rootNode);
treeModel.addTreeModelListener(new MyTreeModelListener());
tree = new JTree(treeModel);
tree.setEditable(true);
tree.getSelectionModel().setSelectionMode
(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.setShowsRootHandles(true);
JScrollPane scrollPane = new JScrollPane(tree);
add(scrollPane);
/** Remove all nodes except the root node. */
public void clear() {
rootNode.removeAllChildren();
treeModel.reload();
public void ok() {
int n = JOptionPane.showConfirmDialog(null, "Do you want to create XML Schema?", "", JOptionPane.YES_NO_OPTION);
/** Remove the currently selected node. */
public void removeCurrentNode() {
TreePath currentSelection = tree.getSelectionPath();
if (currentSelection != null) {
DefaultMutableTreeNode currentNode = (DefaultMutableTreeNode)
(currentSelection.getLastPathComponent());
MutableTreeNode parent = (MutableTreeNode)(currentNode.getParent());
if (parent != null) {
treeModel.removeNodeFromParent(currentNode);
return;
// Either there was no selection, or the root was selected.
toolkit.beep();
/** Add child to the currently selected node. */
public DefaultMutableTreeNode addObject(Object child) {
DefaultMutableTreeNode parentNode = null;
TreePath parentPath = tree.getSelectionPath();
if (parentPath == null) {
parentNode = rootNode;
} else {
parentNode = (DefaultMutableTreeNode)
(parentPath.getLastPathComponent());
return addObject(parentNode, child, true);
public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent,
Object child) {
return addObject(parent, child, false);
public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent,
Object child,
boolean shouldBeVisible) {
DefaultMutableTreeNode childNode =
new DefaultMutableTreeNode(child);
if (parent == null) {
parent = rootNode;
treeModel.insertNodeInto(childNode, parent,
parent.getChildCount());
//Make sure the user can see the lovely new node.
if (shouldBeVisible) {
tree.scrollPathToVisible(new TreePath(childNode.getPath()));
return childNode;
class MyTreeModelListener implements TreeModelListener {
public void treeNodesChanged(TreeModelEvent e) {
DefaultMutableTreeNode node;
node = (DefaultMutableTreeNode)
(e.getTreePath().getLastPathComponent());
* If the event lists children, then the changed
* node is the child of the node we've already
* gotten. Otherwise, the changed node and the
* specified node are the same.
try {
int index = e.getChildIndices()[0];
node = (DefaultMutableTreeNode)
(node.getChildAt(index));
} catch (NullPointerException exc) {}
System.out.println("The user has finished editing the node.");
System.out.println("New value: " + node.getUserObject());
public void treeNodesInserted(TreeModelEvent e) {
public void treeNodesRemoved(TreeModelEvent e) {
public void treeStructureChanged(TreeModelEvent e) {
}XML shema is basically an XML file. So u need to know how to create an XML,
provided u know how the shema file should be.
Creating an XML :
http://forum.java.sun.com/thread.jspa?threadID=5181031&messageID=9705786#9705786 -
Creating XML Schema from tables With Constraints
Greetings,
I'd have an interesting question. I finally am getting familiar with the various kinds of xml solutions provided by the oracle database, but hey here I have another interesting question I can't seem to get into life. I'm currently generating XML Schemas (XSD) from the tables of my database. Its nice its cool however I'd need to have the table's constraints with the xsd:elements also. And heres my problem, I can't seem to insert the table constrains. I'll show you what I mean:
<xsd:element name="MESSAGE_TABLE">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="MESSAGE_RECORD">
<xsd:complexType>
<xsd:all>
<xsd:element name="ID" type="xsd:integer" minOccurs="1" />
<xsd:element name="HEADER">
<xsd:simpleType>
<xsd:restriction base="xsd:string>
<xsd:maxLength value="255" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:all>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<!-- I'd need some more things here like... -->
<!-- Primary key(s) -->
<xsd:key name="PK_ID_PRIM">
<xsd:selector xpath="." />
<xsd:field xpath="ID" />
</xsd:key>
<!-- Foreign key(s) -->
<xsd:keyref name="FK_HEADER_FOREIGN" refer="PK_HEADER_ID">
<xsd:selector xpath="HEADER" />
<xsd:field xpath="ID" />
</xsd:keyref>
<!-- Unique constraint(s) -->
<xsd:unique name="UQ_..." ... />
</xsd:unique>
</xsd:element>That would fit my business needs, however I may be so blind that I can't see the forest from the tree. Currently I got so far that:
xmlElement
"xsd:schema",
xmlAttributes
'http://www.w3.org/2001/XMLSchema' as "xmlns:xsd"
xmlElement
"xsd:element",
xmlAttributes
target_table as "name"
xmlElement
"xsd:complexType",
xmlElement
"xsd:sequence",
xmlElement
"xsd:element",
xmlAttributes
target_table || '_RECORD' as "name",
'unbounded' as "maxOccurs"
xmlElement
"xsd:complexType",
xmlElement
"xsd:sequence",
xmlAgg(ELEMENT)
xmlElement
"xsd:Key",
)As you can see this won't be good since I have put a single xml element in there. I guess I'd need something more like an xmlAgg(CONSTRAINTS), however in that case I'm wondering how will the select's FROM part look like.
FROM
SELECT table_name, internal_column_id,
CASE
WHEN data_type IN ('VARCHAR2', 'CHAR')
THEN
xmlElement
"xsd:element",
xmlattributes
column_name as "name",
decode(NULLABLE, 'Y', 0, 1) as "minOccurs"
xmlElement
"xsd:simpleType",
xmlElement
"xsd:restriction",
xmlAttributes
'xsd:string' as "base"
xmlElement
"xsd:maxLength",
xmlAttributes
DATA_LENGTH as "value"
WHEN data_type = 'DATE'
THEN
xmlElement
"xsd:element",
xmlattributes
column_name as "name",
'xsd:date' as "type",
decode(NULLABLE, 'Y', 0, 1) as "minOccurs"
WHEN data_type = 'NUMBER'
THEN
xmlElement
"xsd:element",
xmlattributes
column_name as "name",
decode(DATA_SCALE, 0, 'xsd:integer', 'xsd:double') as "type",
decode(NULLABLE, 'Y', 0, 1) as "minOccurs"
ELSE
xmlElement
"xsd:element",
xmlattributes
column_name as "name",
'xsd:anySimpleType' as "type",
decode(NULLABLE, 'Y', 0, 1) as "minOccurs"
end ELEMENT
FROM user_tab_cols c
WHERE TABLE_NAME = target_table
ORDER BY internal_column_id
GROUP BY TABLE_NAME;Thank you very much for all your help!
Regards,
Joey
Edited by: Wrath#87 on 2012.09.05. 22:15Thanks for that, answer. That helped me a lot managing primary constraints. However I still have problems managing foreign keys. I come up with the following formula:
xmlElement
"xsd:schema",
xmlAttributes
'http://www.w3.org/2001/XMLSchema' as "xmlns:xsd"
xmlElement
"xsd:element",
xmlAttributes
upper(target_table) as "name"
xmlElement
"xsd:complexType",
xmlElement
"xsd:all",
xmlAgg(ELEMENT)
SELECT xmlElement
"xsd:key",
xmlattributes
uc.constraint_name as "name"
xmlElement
"xsd:selector",
xmlattributes
'.' as "xpath"
xmlAgg
xmlElement
"xsd:field",
xmlattributes
ucc.column_name as "xpath"
order by ucc.position
FROM user_constraints uc
JOIN user_cons_columns ucc
ON ucc.constraint_name = uc.constraint_name
WHERE uc.table_name = upper(target_table)
AND uc.constraint_type = 'P'
GROUP BY uc.constraint_name
SELECT xmlElement
"xsd:keyRef",
xmlattributes
a.constraint_name as "name"
xmlElement
"xsd:selector",
xmlattributes
c.table_name as "xpath"
xmlAgg
xmlElement
"xsd:field",
xmlattributes
d.column_name as "xpath"
order by c.table_name
FROM all_constraints a,
all_cons_columns b,
all_constraints c,
all_cons_columns d
WHERE a.constraint_name = b.constraint_name
AND a.constraint_name = c.r_constraint_name
AND c.constraint_name = d.constraint_name
AND a.table_name = upper(target_table)
)This gives me the following error message: 00937. 00000 - "not a single-group group function" -
Creating xml schema from database attributes
Hi,
I am trying to generate dynamic xml schemas from a java program.
Please suggest me some solutions.
The scenario is like this.
The input to the java program is a table[oracle] name
and based on that table's column headers, i need to define and
create the xml schema dynamically.
The purpose is that at a later point of time, i may
need to copy the content of the database to xml files.
Please reply with your suggestions.
Thanks in advance,
DilipXML Schema itself is a well formed XML document. You can write a small utility class which can do this for you by using any XML API available in Java.
Thanks,
Tejas -
Hello guys
SELECT XMLELEMENT
"order",
XMLELEMENT("load",
XMLATTRIBUTES(T.ID AS "foio",
'AL' AS "acio",
DECODE(i.type,'b',5001,'NA',5002) "pinio"
FROM inventory i,
ORDERS O
WHERE i.ID=O.TICKET;
I am getting out put as
<order>
<load foio=1 acio="AL" pinio="5001" >
</order>
But i need
<?xml version = "1.0"?>
<order>
<load foio=1 acio="AL" pinio="5001" >
</order>
like this
How can i include <?xml version = "1.0"?> above the xml message?
Help needed
SmHai i used
SELECT SYS.XMLTYPE.createxml('<?xml version = "1.0"?>'||''||
XMLELEMENT
"order", XMLELEMENT("load",
XMLATTRIBUTES(T.ID AS "foio",
'AL' AS "acio",
DECODE(i.type,'b',5001,'NA',5002) "pinio"
FROM inventory i,
ORDERS O
WHERE i.ID=O.TICKET;
it is working fine
pls give more suggestions
S -
Hiding the fill while creating a shape (help needed)
Hi,
I'm crossing over to Illustrator after using freehand for many years to create my vector art. I'm struggling with illustrator though because I tend to create lines by making a shape. example here http://www.dot2.uk.com/sugar.html So I need to be able to make these shapes while being able to hide the fill. Hope that makes sense. Can you help (What I mean is... When you create a shape using paths, it tends to fill the area as you create it! I don't want that, I simply need to see the path I'm creating and for it to fill once it's completed.)There is no real way of doing this except to turn off the fill in some way or crearte the object without a fill and the fill it.
The way to turn off the fill is without any thing selected go to the appearance panel uncheck from the flyout New Art Has Basic Appearance?
Then in the appearance panel click on the default fill"s eye icon to make it invisible.
Now start drawing. if you turn the fill back on the new art will have a fill unless you turn it off again but if you do not tun it on again you can just continue to draw without the fill.
You can select different fill colors for each object and it will not be visible this way and when you turn on the fills for each object the roper color will fill the object.
Still I like the method you describe and it would be better to have an option to work this way .
Ooops all this and of course I did not think of command y.
The above is only good if you need to see the previously drawn art as is. -
Hi,
Need help in writing a query.
SQL> SELECT xmlelement("P",xmlforest(P.process_id AS Ppid),
2 xmlagg(xmlelement("PI",XMLFOREST( PI.question_id AS PIqid,
3 PI.process_id AS PIpid,
4 PI.innertext AS PItext),
5 xmlagg(Xmlelement("PO",xmlforest( PO.option_id AS POoid,
6 PO.question_id AS POqid,
7 PO.process_id AS popid
8 ))
9 ORDER BY PO.option_id))
10 ORDER BY PI.question_id ) )
11 FROM liveProcess_ec P
12 INNER JOIN vw_liveProcessItem_Sim_v6 PI
13 ON P.process_id = PI.process_id
14 LEFT OUTER JOIN vw_liveProcessOption_Sim_v6 PO
15 ON PI.question_id = PO.question_id
16 AND PI.process_id = PO.process_id
17 WHERE p.process_id =450
18 GROUP BY p.process_id,PI.question_id,PI.process_id,PI.innertext
19 ORDER BY p.process_id;
SELECT xmlelement("P",xmlforest(P.process_id AS Ppid),
ERROR at line 1:
ORA-00937: not a single-group group functionThanks in advanceHi,
Here below are the create table scripts along with sample data and expected output.
CREATE TABLE VW_LIVEPROCESSOPTION_SIM_v6
( "OPTION_ID" NUMBER,
"QUESTION_ID" NUMBER(10,0),
"PROCESS_ID" NUMBER(10,0),
"OPT_INNERTEXT" VARCHAR2(200 CHAR),
"OPT_LINKFROM" VARCHAR2(20 CHAR),
"OPT_LINKTO" VARCHAR2(20 CHAR),
"LIBQUESTION_IDFK" NUMBER,
"LIBOPTION_IDFK" NUMBER
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (1,2,450,'Yes',null,'5',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (1,3,450,'Yes',null,'5',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (1,5,450,'Yes',null,'6',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (1,6,450,'Yes',null,'7',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (1,8,450,'Block All',null,'9',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (1,9,450,'Yes',null,'10',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (1,11,450,'Yes',null,'12',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (1,12,450,'Yes',null,'13',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (1,14,450,'Yes',null,'16',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (2,2,450,'No',null,'3',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (2,3,450,'No',null,'4',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (2,5,450,'No',null,'8',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (2,6,450,'No',null,'8',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (2,8,450,'Standard',null,'11',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (2,9,450,'No',null,'11',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (2,11,450,'No',null,'14',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (2,12,450,'No',null,'14',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (2,14,450,'No',null,'15',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (3,8,450,'Disabled',null,'12',null,null);
Insert into VW_LIVEPROCESSOPTION_SIM_v6(OPTION_ID,QUESTION_ID,PROCESS_ID,OPT_INNERTEXT,OPT_LINKFROM,OPT_LINKTO,LIBQUESTION_IDFK,LIBOPTION_IDFK) values (4,8,450,'User Defined',null,'12',null,null);
REATE TABLE "VW_LIVEPROCESSITEM_SIM_v6"
( "QUESTION_ID" NUMBER(10,0),
"PROCESS_ID" NUMBER(10,0),
"INNERTEXT" VARCHAR2(200 CHAR),
"ITEMTYPE" VARCHAR2(50 CHAR),
"LINKFROM" VARCHAR2(500 CHAR),
"LINKTO" VARCHAR2(500 CHAR),
"ASSOCIATED" VARCHAR2(200 CHAR),
"CONTENT_ID" NUMBER,
"EXITPOINT1_ID" NUMBER(10,0),
"EXITPOINT2_ID" NUMBER(10,0),
"EXITPOINT3_ID" NUMBER(10,0),
"RESOLVEIDENTIFIER" VARCHAR2(40 CHAR),
"LIBQUESTION_IDFK" NUMBER(10,0),
"FOLLOWONCALL" NUMBER(1,0),
"USERINPUT" VARCHAR2(200 CHAR),
"ISLOCKED" NUMBER(1,0),
"PREVIOUSANSWER" NUMBER(1,0),
"VISIBLETOAGENT" NUMBER(1,0),
"RETRYATTEMPT" NUMBER(10,0),
"TAGS" VARCHAR2(50 BYTE)
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (1,450,'CBB1015 - Router Firewall Settinngs Process','Title',null,'2',null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (2,450,'Is the customers PC Firewall turned off?','Question','1','2.2,2.1',null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (3,450,'Advise the customer to turn off the PC Firewall in order to continue. Has this been done?','Question','2.2','3.2,3.1',null,278,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (4,450,'Advise the customer the PC Firewall must be switched off before this process????','ExitPoint','3.2',null,null,null,14,null,null,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (5,450,'Is the customer able to access the internet now?','Question','3.1,2.1','5.2,5.1',null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (6,450,'Is the customer having a problem with a specific website?','Question','5.1','6.2,6.1',null,null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (7,450,'1536: CBB1008 - Browser Setup and Daignostics','SubProcess','6.1',null,'1536-1-0',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (8,450,'What is the security level on the CPE Management page?','Question','6.2,5.2','8.4,8.3,8.2,8.1',null,279,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (9,450,'Change the security level to Standard. Does this resolve the customers issue?','Question','8.1','9.2,9.1',null,280,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (10,450,'Issue Resolved','ExitPoint','9.1',null,null,null,1,6,122,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (11,450,'Change the security level to Disabled. Is the customer able to browse the internet?','Question','9.2,8.2','11.2,11.1',null,281,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (12,450,'Change the security level to Standard. Is the customer able to browse the internet now?','Question','11.1,8.3,8.4','12.2,12.1',null,283,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (13,450,'Issue Resolved','ExitPoint','12.1',null,null,null,1,6,123,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (14,450,'Ask the customer to perform a master reset. Does this resolve their issue?','Question','12.2,11.2','14.2,14.1',null,282,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (15,450,'Faulty CPE','ExitPoint','14.2',null,null,null,1,6,124,null,null,null,null,null,null,null,null,null);
Insert into VW_LIVEPROCESSITEM_SIM_v6 (QUESTION_ID,PROCESS_ID,INNERTEXT,ITEMTYPE,LINKFROM,LINKTO,ASSOCIATED,CONTENT_ID,EXITPOINT1_ID,EXITPOINT2_ID,EXITPOINT3_ID,RESOLVEIDENTIFIER,LIBQUESTION_IDFK,FOLLOWONCALL,USERINPUT,ISLOCKED,PREVIOUSANSWER,VISIBLETOAGENT,RETRYATTEMPT,TAGS) values (16,450,'Issue Resolved','ExitPoint','14.1',null,null,null,1,6,123,null,null,null,null,null,null,null,null,null);
CREATE TABLE "LIVEPROCESS_EC_V"
( "PROCESS_ID" NUMBER(10,0),
"USER_ID" NUMBER(10,0),
"CREATED" TIMESTAMP (6)
Insert into LIVEPROCESS_EC (PROCESS_ID,USER_ID,CREATED) values (450,7460,to_timestamp('21-APR-08 09.34.41.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'));Expected Output
<P>
<Ppid>450</Ppid>
<Pn>CBB1015 - Router Firewall Settinngs Process</Pn>
<Pg>9</Pg>
<Pl>0</Pl>
<Pb>5</Pb>
<qcount>100</qcount>
<ocount>200</ocount>
<PI>
<PIqid>1</PIqid>
<PIpid>450</PIpid>
<PIpx>366</PIpx>
<PIpy>-516</PIpy>
<PItext>CBB1015 - Router Firewall Settinngs Process</PItext>
<PItype>Title</PItype>
<PIto>2</PIto>
<PO />
</PI>
<PI>
<PIqid>2</PIqid>
<PIpid>450</PIpid>
<PIpx>366</PIpx>
<PIpy>-437</PIpy>
<PItext>Is the customers PC Firewall turned off?</PItext>
<PItype>Question</PItype>
<PIfrom>1</PIfrom>
<PIto>2.2,2.1</PIto>
<PO>
<POoid>1</POoid>
<POqid>2</POqid>
<popid>450</popid>
<POpx>-50</POpx>
<POpy>70</POpy>
<POtext>Yes</POtext>
<POto>5</POto>
</PO>
<PO>
<POoid>2</POoid>
<POqid>2</POqid>
<popid>450</popid>
<POpx>50</POpx>
<POpy>70</POpy>
<POtext>No</POtext>
<POto>3</POto>
</PO>
</PI>
<PI>
<PIqid>3</PIqid>
<PIpid>450</PIpid>
<PIpx>468</PIpx>
<PIpy>-344</PIpy>
<PItext>Advise the customer to turn off the PC Firewall in order to continue. Has this been done?</PItext>
<PItype>Question</PItype>
<PIfrom>2.2</PIfrom>
<PIto>3.2,3.1</PIto>
<PIc>278</PIc>
<PO>
<POoid>1</POoid>
<POqid>3</POqid>
<popid>450</popid>
<POpx>-50</POpx>
<POpy>70</POpy>
<POtext>Yes</POtext>
<POto>5</POto>
</PO>
<PO>
<POoid>2</POoid>
<POqid>3</POqid>
<popid>450</popid>
<POpx>50</POpx>
<POpy>70</POpy>
<POtext>No</POtext>
<POto>4</POto>
</PO>
</PI>
<PI>
<PIqid>4</PIqid>
<PIpid>450</PIpid>
<PIpx>571</PIpx>
<PIpy>-250</PIpy>
<PItext>Advise the customer the PC Firewall must be switched off before this process????</PItext>
<PItype>ExitPoint</PItype>
<PIfrom>3.2</PIfrom>
<PIe1>14</PIe1>
<PO />
</PI>
<PI>
<PIqid>5</PIqid>
<PIpid>450</PIpid>
<PIpx>374</PIpx>
<PIpy>-240</PIpy>
<PItext>Is the customer able to access the internet now?</PItext>
<PItype>Question</PItype>
<PIfrom>3.1,2.1</PIfrom>
<PIto>5.2,5.1</PIto>
<PO>
<POoid>1</POoid>
<POqid>5</POqid>
<popid>450</popid>
<POpx>-50</POpx>
<POpy>70</POpy>
<POtext>Yes</POtext>
<POto>6</POto>
</PO>
<PO>
<POoid>2</POoid>
<POqid>5</POqid>
<popid>450</popid>
<POpx>50</POpx>
<POpy>70</POpy>
<POtext>No</POtext>
<POto>8</POto>
</PO>
</PI>
<PI>
<PIqid>6</PIqid>
<PIpid>450</PIpid>
<PIpx>322</PIpx>
<PIpy>-141</PIpy>
<PItext>Is the customer having a problem with a specific website?</PItext>
<PItype>Question</PItype>
<PIfrom>5.1</PIfrom>
<PIto>6.2,6.1</PIto>
<PO>
<POoid>1</POoid>
<POqid>6</POqid>
<popid>450</popid>
<POpx>-50</POpx>
<POpy>70</POpy>
<POtext>Yes</POtext>
<POto>7</POto>
</PO>
<PO>
<POoid>2</POoid>
<POqid>6</POqid>
<popid>450</popid>
<POpx>50</POpx>
<POpy>70</POpy>
<POtext>No</POtext>
<POto>8</POto>
</PO>
</PI>
<PI>
<PIqid>7</PIqid>
<PIpid>450</PIpid>
<PIpx>128</PIpx>
<PIpy>-36</PIpy>
<PItext>1536: CBB1008 - Browser Setup and Daignostics</PItext>
<PItype>SubProcess</PItype>
<PIfrom>6.1</PIfrom>
<PIas>1536-1-0</PIas>
<PO />
</PI>
<PI>
<PIqid>8</PIqid>
<PIpid>450</PIpid>
<PIpx>461</PIpx>
<PIpy>-43</PIpy>
<PItext>What is the security level on the CPE Management page?</PItext>
<PItype>Question</PItype>
<PIfrom>6.2,5.2</PIfrom>
<PIto>8.4,8.3,8.2,8.1</PIto>
<PIc>279</PIc>
<PO>
<POoid>1</POoid>
<POqid>8</POqid>
<popid>450</popid>
<POpx>-112</POpx>
<POpy>89</POpy>
<POtext>Block All</POtext>
<POto>9</POto>
</PO>
<PO>
<POoid>2</POoid>
<POqid>8</POqid>
<popid>450</popid>
<POpx>50</POpx>
<POpy>70</POpy>
<POtext>Standard</POtext>
<POto>11</POto>
</PO>
<PO>
<POoid>3</POoid>
<POqid>8</POqid>
<popid>450</popid>
<POpx>83</POpx>
<POpy>116</POpy>
<POtext>Disabled</POtext>
<POto>12</POto>
</PO>
<PO>
<POoid>4</POoid>
<POqid>8</POqid>
<popid>450</popid>
<POpx>-14</POpx>
<POpy>94</POpy>
<POtext>User Defined</POtext>
<POto>12</POto>
</PO>
</PI>
<PI>
<PIqid>9</PIqid>
<PIpid>450</PIpid>
<PIpx>237</PIpx>
<PIpy>76</PIpy>
<PItext>Change the security level to Standard. Does this resolve the customers issue?</PItext>
<PItype>Question</PItype>
<PIfrom>8.1</PIfrom>
<PIto>9.2,9.1</PIto>
<PIc>280</PIc>
<PO>
<POoid>1</POoid>
<POqid>9</POqid>
<popid>450</popid>
<POpx>-50</POpx>
<POpy>70</POpy>
<POtext>Yes</POtext>
<POto>10</POto>
</PO>
<PO>
<POoid>2</POoid>
<POqid>9</POqid>
<popid>450</popid>
<POpx>69</POpx>
<POpy>73</POpy>
<POtext>No</POtext>
<POto>11</POto>
</PO>
</PI>
<PI>
<PIqid>10</PIqid>
<PIpid>450</PIpid>
<PIpx>158</PIpx>
<PIpy>185</PIpy>
<PItext>Issue Resolved</PItext>
<PItype>ExitPoint</PItype>
<PIfrom>9.1</PIfrom>
<PIe1>1</PIe1>
<PIe2>6</PIe2>
<PIe3>122</PIe3>
<PO />
</PI>
<PI>
<PIqid>11</PIqid>
<PIpid>450</PIpid>
<PIpx>821</PIpx>
<PIpy>144</PIpy>
<PItext>Change the security level to Disabled. Is the customer able to browse the internet?</PItext>
<PItype>Question</PItype>
<PIfrom>9.2,8.2</PIfrom>
<PIto>11.2,11.1</PIto>
<PIc>281</PIc>
<PO>
<POoid>1</POoid>
<POqid>11</POqid>
<popid>450</popid>
<POpx>-50</POpx>
<POpy>70</POpy>
<POtext>Yes</POtext>
<POto>12</POto>
</PO>
<PO>
<POoid>2</POoid>
<POqid>11</POqid>
<popid>450</popid>
<POpx>50</POpx>
<POpy>70</POpy>
<POtext>No</POtext>
<POto>14</POto>
</PO>
</PI>
<PI>
<PIqid>12</PIqid>
<PIpid>450</PIpid>
<PIpx>474</PIpx>
<PIpy>186</PIpy>
<PItext>Change the security level to Standard. Is the customer able to browse the internet now?</PItext>
<PItype>Question</PItype>
<PIfrom>11.1,8.3,8.4</PIfrom>
<PIto>12.2,12.1</PIto>
<PIc>283</PIc>
<PO>
<POoid>1</POoid>
<POqid>12</POqid>
<popid>450</popid>
<POpx>-50</POpx>
<POpy>70</POpy>
<POtext>Yes</POtext>
<POto>13</POto>
</PO>
<PO>
<POoid>2</POoid>
<POqid>12</POqid>
<popid>450</popid>
<POpx>50</POpx>
<POpy>70</POpy>
<POtext>No</POtext>
<POto>14</POto>
</PO>
</PI>
<PI>
<PIqid>13</PIqid>
<PIpid>450</PIpid>
<PIpx>322</PIpx>
<PIpy>278</PIpy>
<PItext>Issue Resolved</PItext>
<PItype>ExitPoint</PItype>
<PIfrom>12.1</PIfrom>
<PIe1>1</PIe1>
<PIe2>6</PIe2>
<PIe3>123</PIe3>
<PO />
</PI>
<PI>
<PIqid>14</PIqid>
<PIpid>450</PIpid>
<PIpx>645</PIpx>
<PIpy>327</PIpy>
<PItext>Ask the customer to perform a master reset. Does this resolve their issue?</PItext>
<PItype>Question</PItype>
<PIfrom>12.2,11.2</PIfrom>
<PIto>14.2,14.1</PIto>
<PIc>282</PIc>
<PO>
<POoid>1</POoid>
<POqid>14</POqid>
<popid>450</popid>
<POpx>-50</POpx>
<POpy>70</POpy>
<POtext>Yes</POtext>
<POto>16</POto>
</PO>
<PO>
<POoid>2</POoid>
<POqid>14</POqid>
<popid>450</popid>
<POpx>50</POpx>
<POpy>70</POpy>
<POtext>No</POtext>
<POto>15</POto>
</PO>
</PI>
<PI>
<PIqid>15</PIqid>
<PIpid>450</PIpid>
<PIpx>768</PIpx>
<PIpy>435</PIpy>
<PItext>Faulty CPE</PItext>
<PItype>ExitPoint</PItype>
<PIfrom>14.2</PIfrom>
<PIe1>1</PIe1>
<PIe2>6</PIe2>
<PIe3>124</PIe3>
<PO />
</PI>
<PI>
<PIqid>16</PIqid>
<PIpid>450</PIpid>
<PIpx>479</PIpx>
<PIpy>420</PIpy>
<PItext>Issue Resolved</PItext>
<PItype>ExitPoint</PItype>
<PIfrom>14.1</PIfrom>
<PIe1>1</PIe1>
<PIe2>6</PIe2>
<PIe3>123</PIe3>
<PO />
</PI>
</P>Thanks in advance. -
Create slide show - help needed to transfer from iPhoto
I am an editing novice but a skilled Mac user with a programing background. I am trying to create a 20-30 minute slide show of approximately 250 photos to run in the background at my son's bar mitzvah on 61 inch plasmas. I have selected the photos and can produce something very basic in iPhoto. I would like to improve this in the following ways and hope Final Cut Express is the best too:
1) Ability to custom configure Ken Burns effects to the proper faces, etc, and hopefully add rotation of my choice.
2) Be able to create PIP and split screen effects. Concepts include having 2-4 photos in field simultaneously
3) No need for sound - this will run in background
4) Need to format photos to fit monitor best - assume this gets done best in iPhoto
Is the best thing to do to export a QT movie from iPhoto? Is there a better way to get the photos into FCE? Is there a good primer for slide shows in FCE either on web or for sale?
Sorry to pound the questions, but I did not see a direct response on the forum.I just had to do a slide show with 190 pictures. I created it in iMovie so applying the Ken Burns would be less work, yet I still had control over the direction of travel. When I was done, while in iMovie, I exported as movie as the first choice under export (I can't think of the correct term) and selected the large option when it gave me the choices. It was exported to the desktop as an MP4 and I easily imported it into FCE with no loss of clarity. I also tried to export it as a Quicktime movie to see if it would work also and I was also able to import that into FCE. IMHO iMovie is the way to go for simple slide shows. Hope this helps.
PS. If you need 30 minutes of video, iMovie can easily adjust you photos. I know you said you didn't need music, but try this. Place all your photos into iMovie. Then place X number of songs, any songs, into iMovie until you have 30 minutes. I believe iMovie sets all clips at 4 seconds. You can then add cross desolve transitions between every photo buy going into project settings and clicking on the box to add dissolves. Then set the length of disolve between .5 and 1 second. You then call tell if you have enough photos to fill 30 minutes by seeing if the photos totaly fill up the music (highlight in iMovie)if you are to short, make the photos 5-10 seconds. If you are too long just make them shorter. When you import into FCE, just delete the audio track.
Message was edited by: vidoedude -
I want to create an address schema that would support global address formats and be used by other schemas. What is the best practice for this? I was thinking of creating complex types for each locale that specified the address format for that locale. But I got to thinking that how would this work??
If I have a schema, let's say PurchaseOrder.xsd that imports the Address.xsd schema. I can specify US-AddressType for the billTo element type, but how do I know which locale to use? What if the order contained data for UK? This doesn't generic/robust enough.
Any suggestions?
kevin
p.s. I can't believe there isn't any standard schemas already out there. Or at least I couldn't find any.....p.s. I can't believe there isn't any standard schemas
already out there. Or at least I couldn't find
any.....After what you wrote in your first two paragraphs, I don't understand why you are surprised. You hit on the obvious problems right away.
As far as I know, schemas for EDI are being developed by industry organizations. I can tell you that American industry organizations don't give a rap for international issues. Probably European industry organizations would. Also, I can tell you that in the industry I work in, people who do EDI can barely spell XML let alone being interested in using schemas. -
Creating sub menus, help needed.
Hi,
I created a simple little app which is menu based, everything works fine but i want to add a new menu after selecting one of the main menu items.
I can't seem to get this running and I'm totally confused.
If someone could give me a little help with how this should work that would be amazing?
Basically I need to create a sub menu.Sorry man, I totally didn't mention it is an iPhone app I'm building.
Thought I mentioned. Is that something you can help me with?
Thanks mate. -
Hello Everybody
Here is my requirement.
I am creating a XML form that will be set up with a approval workflow. My form has a combo box with several entries and whenever the user selects something from this box the approver should be changed accordingly.
One more requirement is I should show this approver in the form.
Can somebody please help me. I have seen the propeties in the XML form but not getting any clue on how to use them.
Any help will be greatly appreciated.
Thanks
RenuRenuka,
In KM you can use layout set in order define something such as: command groups by files, folders and links. Also you can define your layout controller, which columms you want to display, number of rows so on. Please, read about layout set, collection renderer and resource renderer.
After, you can assign this layout to your folder or iview.
Therefore when you open your form from this iview, you can use botton defined in this layout.
As you can see by default there are two layout defined for news:
NewsBrowser
NewsExplorer
Try to analyze it.
Patricio.
Message was edited by: Patricio Garcia -
I am having trouble using OracleXML getXML, after
setting all the path variables in env.csh I try
java OracleXML getXML -user "user/passwd" "select a, b from blog"
but get the following error.
ORA-01019: unable to allocate memory in the user side
The same error occurs for jdk1.1.7 and jdk1.2
nullHi Dean,
It might be something to do with connecting through oci8 to the
Oracle executable. ( I am not sure since I dont know ur
configuration etc..). BTW what release of Oracle is this?
One thing for you to try out would be to write a small java
program against the OracleXMLQuery class to see if that works.
I have attached a very simple program below:-
import java.sql.*;
import java.math.*;
import oracle.xml.sql.query.*;
import oracle.jdbc.*;
import oracle.jdbc.driver.*;
public class testXML{
public static void main(String args[]) throws SQLException
DriverManager.registerDriver
(new oracle.jdbc.driver.OracleDriver());
Connection conn = (Connection)
DriverManager.getConnection("jdbc:oracle:oci8:scott/tiger@");
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery("select * from emp");
OracleXMLQuery qry = new OracleXMLQuery(conn,rset);
String xmlString = qry.getXMLString();
System.out.println(" OUPUT IS "+xmlString);
This code does a select from emp table available in scott/tiger
schema. U can change the login and the table names
appropriately. SEtup all the environment variables etc.. (see
release notes), save this as testXML.java, run javac to get the
class and execute it using "java testXML". If this doesnt work,
try changing the getConnection line to use the thin jdbc, such
as,
DriverManager.getConnection
("jdbc:oracle:thin:@","scott","tiger");
You can check out the JDBC documentation for how to specify
your connection for your particular setup (such as specifying
the port number etc.. if needed).
Lemme know if it works,
Murali
Dean Kuo (guest) wrote:
: I am having trouble using OracleXML getXML, after
: setting all the path variables in env.csh I try
: java OracleXML getXML -user "user/passwd" "select a, b from
blog"
: but get the following error.
: ORA-01019: unable to allocate memory in the user side
: The same error occurs for jdk1.1.7 and jdk1.2
null -
Hi there
I have created an xsl in DW CS3. It is displaying a news feed
properly with the xml feeds title and description ..however ..I
want to add the story link from the xml to the title of each of the
news headlines ... I can't seem to do it ..as the text of the url
link appears. Can anyone help with this? Below is the xsl (without
the link from xml) and the xml feed is:
http://hosted.ap.org/lineups/WORLDHEADS-rss_2.0.xml?SITE=ALOPE&SECTION=HOME
thanks Rob
<?xml version="1.0" encoding="utf-8"?><!--
DWXMLSource="
http://hosted.ap.org/lineups/WORLDHEADS-rss_2.0.xml?SITE=CAANR&SECTION=HOME"
--><!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/"><link
href="Level1_Verdana.css" rel="stylesheet" type="text/css"
media="all" /><link href="Level1_Arial.css" rel="stylesheet"
type="text/css" />
<xsl:for-each select="rss/channel/item">
<table width="500" border="0">
<tr>
<td bgcolor="#CCCCCC"><xsl:value-of
select="title"/></td>
</tr>
<tr>
<td><xsl:value-of
select="description"/></td>
</tr>
</table>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>> it ..as the text of the url link appears. Can anyone
help with this?
> Below is
> the xsl (without the link from xml) and the xml feed is:
>
http://hosted.ap.org/lineups/WORLDHEADS-rss_2.0.xml?SITE=ALOPE&SECTION=HOME
In your XSL:
<a href="{link}"><xsl:value-of select="title"
/></a>
-Darrel -
Hope someone can help me --
I've been having some success bringing an XML data set into a table using Spry, but was looking for some help on how to do something more specific.
I have a small group of data with the following headings: State, number, credits, date. I'd like to create a two-row table with the top row as the column headings and a second row that populates based on a drop-down list for the state.
For example:
State
Number
Credits
Date
Alabama (drop down arrow)
589654
7
4/29/2009
Then, when you click the drop down arrow and choose New York, the other fields will fill in from that XML item
State
Number
Credits
Date
New York (drop down arrow)
XL7654
6.4
5/3/2009
Can anyone help?Hi eschillay,
Assuming you had a data set with column names that matched the headers in your table, it would look something like this:
<script type="text/javascript">
var ds1 = new Spry.Data.XMLDataSet("states.xml", "/states/state");
</script>
<div spry:detailregion="ds1">
<table>
<tr>
<th>State</th>
<th>Credit</th>
<th>Numbers</th>
<th>Date</th>
</tr>
<tr>
<td>
<select spry:repeatchildren="ds1" spry:choose="choose" onchange="ds1.setCurrentRowNumber(this.selectedIndex)">
<option spry:when="{ds_RowNumber} == {ds_CurrentRowNumber}" selected="selected" value="{State}">{State}</option>
<option spry:default="default" value="{State}">{State}</option>
</select>
</td>
<td>{Credit}</td>
<td>{Numbers}</td>
<td>{Date}</td>
</tr>
</table>
</div>
--== Kin ==-- -
Adapter : XML Doubt :Help Needed
Hi
I am trying to modity the sample adpater to work as a custom jdbc adapter. When my adaptyer gets the message it gets it in an XML format :
<?xml version="1.0" encoding="UTF-8"?>
<ns0:mt_jdbcrec xmlns:ns0="urn:flatfile2jdbc">
<STATEMENT>
<MyTest action="INSERT">
<TABLE>TEST_EMP</TABLE>
<access>
<EMPID>c</EMPID>
<EMPNAME>xc</EMPNAME>
<EMPPAGE>xc</EMPPAGE>
<FLAG>xc</FLAG>
</access>
</MyTest>
</STATEMENT>
</ns0:mt_jdbcrec>
To do an insert into my data base I need to know the data type for each field. Is there any way to get the datatype for each field from my incoming message???
Thanks in Advance
JaiJai,
The below statement is little bit confusing,
<i>To do an insert into my data base I need to know the data type for each field. Is there any way to get the datatype for each field from my incoming message???</i>
If you don't mind could you please explain little bit in detail!!
-raj.
Maybe you are looking for
-
Resuming sleep from lid-closed mode?
Sorry if this has already been answered, but searching through the manual and 34 pages of previous posts didn't turn up anything. When I get to work, I connect my MBP (in sleep mode) to my external monitor and then to my usb keyboard/mouse, which tri
-
I have a i tunes card why do i need a credit card
i have a i tunes card that i thought i could use with out having a credit card is there someway i can use it with out one
-
Hi Gurus Can some one please explain to me how to use oracle reports in ebs.Please detail it properly for me.
-
Unwanted characters are printed at line start and line end in Smartforms
Hi All, When we print a document on Dot matrix server printer, there are lot junk characters are printed. But we print the same on the Dotmatrix locl printer, the print seems to be very prefect. Could any one help us to over this problem. Advance tha
-
Subpar printing from Apples Apps in Leo
Acrobat Reader works, Photoshop CS3 works, Indesign prints. Text only works in Pages 08, grapics dont print in pages 08 and no print from Safari. Here is the error log http://www.nuna.no/error_log.log Job number 116 is Apples Pages 08, job number 155