Xquery problems
hi,
i'm using xquery.jar and have encountered some problems while checking the xquery-use-cases (http://www.w3.org/TR/xmlquery-use-cases/).
currently i do not use a DBConnection but read data from a file.
while some of the first queries work, most don't:
XMP Q4,Q6,Q7,Q8,Q9,Q10,Q12 do fail for different reasons.
('distinct-value', 'local-name', XQueryException: 1, ..)
is there a list which features are supported by xquery.jar?
is there any date or version when xquery will be implemented into the ORACLE DB?
best regards
peter
ps: sorry for crossposting. but i'm quite sure it fit's into both forums.
Hi Mathias,
That was a good suggestion.
I have already tried it and OSB gives the following error (same for element(*, xs:base64Binary) selector) :
*{bea-err}SYS001: This functionality has not been implemented (sorry)*
I see this error message every time i do an xquery operation that does a comparison or selection on the base xsd type of elements.
But "instance of" does not give this error it just doesent seem to work.
This seems to indicate that Oracle OSB doesnt support these kind of operations, even though their documentation seems to indicate otherwise.
Regards
Timm
Similar Messages
-
XQuery problem in WorkShop for Linux distributions
Hi,
I'm tryng to start a new xQuery Transformation with WorkShop (version 9.2.1) in a Linux fedora 6 machine, but fail in error.
This is the ../.metadata/.log portion of logfile:
=============================================================================
Prova di lancio per nuovo xQuery
=============================================================================
!ENTRY org.eclipse.osgi 2007-01-16 11:20:46.68
!MESSAGE An error occurred while automatically activating bundle com.bea.wli.ide.mapper (427).
!STACK 0
org.osgi.framework.BundleException: Exception in com.bea.wli.ide.mapper.MapperPlugin.start() of bundle com.bea.wli.ide.mapper.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1013)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:969)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:316)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:240)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:236)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createExecutableExtension(WorkbenchWizardElement.java:118)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createWizard(WorkbenchWizardElement.java:276)
at org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWizard(NewWizardNewPage.java:724)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(WorkbenchWizardNode.java:145)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(WorkbenchWizardNode.java:128)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizardNode.java:125)
at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:101)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:99)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:747)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:345)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
at org.eclipse.jface.window.Window.open(Window.java:787)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: javax.swing.UnsupportedLookAndFeelException: [The Mapper Look and Feel - com.bea.wli.ide.mapper.util.MapperLookAndFeel] not supported on this platform
at javax.swing.UIManager.setLookAndFeel(UIManager.java:428)
at com.bea.wli.ide.mapper.MapperPlugin.start(MapperPlugin.java:60)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:988)
... 65 more
Root exception:
javax.swing.UnsupportedLookAndFeelException: [The Mapper Look and Feel - com.bea.wli.ide.mapper.util.MapperLookAndFeel] not supported on this platform
at javax.swing.UIManager.setLookAndFeel(UIManager.java:428)
at com.bea.wli.ide.mapper.MapperPlugin.start(MapperPlugin.java:60)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:988)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:969)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:316)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:240)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:236)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createExecutableExtension(WorkbenchWizardElement.java:118)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createWizard(WorkbenchWizardElement.java:276)
at org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWizard(NewWizardNewPage.java:724)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(WorkbenchWizardNode.java:145)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(WorkbenchWizardNode.java:128)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizardNode.java:125)
at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:101)
at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:99)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:747)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:345)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
at org.eclipse.jface.window.Window.open(Window.java:787)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:181)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Is there someone that can help me?
Regards
BenedettoI'm running IBM WebSphere Development's Development Studio Client for the iSeries 5.1.2. and I'm all of sudden receiving this same message...
JVMXM004: JVM is performing abort shutdown sequence
JVMDG217: Dump Handler is Processing a Signal - Please Wait.
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to
C:\WDSC512WS\Workspace\CMRWITEST\javacore.20041210.080731.3332.txt
JVMDG215: Dump Handler has Processed Exception Signal 11.
When I look at the javacore.20041210.080731.3332.txt file, to tell the truth, I can't make heads or tails of what the problem really is.
If anyone can help or at the very least, head me down some path to troubleshoot it would be greatly appreciated. -
Xquery Problem for for takes really long time
I am having problems with an issue using doing an xml xQuery from Oxygen to a dbxml database.
I can't list the code because it is quite detailed and on a secure computer, but the concept is simple.
I have an xquery that looks like this:
Bunch of let statements
<results>
Let $y := "one"
For $thing in $list_of_things
More let statements
Where ....
Return
Html and more embedded xquery expressions including for, where etc.
</results>
I run a query with $y := "one" as above and it takes 1.5 seconds.
If I modify the query slightly by replacing the "let $y := "one" with an additional "for" it takes 250 seconds, though the results are the same as before.
Why did it take so long?
All I did was add the for which only has one item in it so it should do the same thing?!
Modified Query
Bunch of let statements
<results>
For $y in ("one")
For $thing in $list_of_things
More let statements
Where ....
Return
Html and more embedded xquery expressions including for, where etc.
</results>
Thanks for any help anyone can offer, CurtCurt, perhaps you'd need to provide a bit more relevant detail and in simpler form in order to get a helpful answer. On the face of it, changing let to for in that position might have an impact simply because you are changing a simple variable assignment followed by a for clause to a nested for...for clause. Is your "one" value a dummy for demonstration purposes or the actual value in your code? On the face of it, it looks like for each loop of the first for, you'd be repeating the execution of all the subsequent code. Without more context it's difficult to judge what would happen exactly.
I suspect that if it's XQuery you're needing help with you'll get more responses on a dedicated forum. For help with DBXML performance issues you're probably going to need to tell people about your indices and be more explicit about their relationship to your query, in order for them to understand the problem.
If that's not helpful just review your code again and continue experimenting.
Tim -
Hello,
I have some xml documents as the following:
<?xml version="1.0" encoding="UTF-8"?>
<sm:be-canali xmlns:sm="http://www.oracle.com/serviceManager/output">
<sm:evento-ordine>
<sm:evento>
<sm:cod-evento>003</sm:cod-evento>
<sm:ts-evento>2005-08-08 15:40:20.679</sm:ts-evento>
<sm:cod_status_ordine>PU</sm:cod_status_ordine>
</sm:evento>
<sm:evento>
<sm:cod-evento>018</sm:cod-evento>
<sm:ts-evento>2005-08-26 11:49:07.286</sm:ts-evento>
<sm:cod_status_ordine>PU</sm:cod_status_ordine>
</sm:evento>
<sm:evento>
<sm:cod-evento>015</sm:cod-evento>
<sm:ts-evento>2005-08-26 11:49:08.257</sm:ts-evento>
<sm:cod_status_ordine>PU</sm:cod_status_ordine>
</sm:evento>
</sm:evento-ordine>
</sm:be-canali>
I define a table
test (operationd_id number(10), events xmltype) where I inserted some records.
I try to execute the following xquery:
SELECT OPERATION_ID, EVENTS11.* from test,
XMLTABLE(XMLNAMESPACES('http://www.oracle.com/serviceManager/output' as "sm"),
'for $prod in /sm:be-canali/sm:evento-ordine let $cnt:=1
let $pippo:=$prod/sm:evento return $prod/sm:evento[$cnt] ' PASSING EVENTS
COLUMNS
cod_evento VARCHAR(8) PATH 'sm:cod-evento',
ts_evento VARCHAR(128) PATH 'sm:ts-evento',
cod_status_ordine VARCHAR(8) PATH 'sm:cod_status_ordine'
) as EVENTS11
WHERE
operation_id =1
and I receive, as response the following
1, null,null,null
If I set the number 1, instead of the variable inside the return element as:
SELECT OPERATION_ID, EVENTS11.* from test,
XMLTABLE(XMLNAMESPACES('http://www.oracle.com/serviceManager/output' as "sm"),
'for $prod in /sm:be-canali/sm:evento-ordine let $cnt:=1
let $pippo:=$prod/sm:evento return $prod/sm:evento[1] ' PASSING EVENTS
COLUMNS
cod_evento VARCHAR(8) PATH 'sm:cod-evento',
ts_evento VARCHAR(128) PATH 'sm:ts-evento',
cod_status_ordine VARCHAR(8) PATH 'sm:cod_status_ordine'
) as EVENTS11
WHERE
operation_id =1
I obtain
1 003 2005-08-08 15:40:20.679 PU
as it shoud be.
I do not undestand how I can pass the variable inside the xquery.
The really query I have to execute is
SELECT OPERATION_ID, EVENTS11.* from bnl_test,
XMLTABLE(XMLNAMESPACES('http://www.bnl.com/serviceManager/output' as "sm"),
'for $prod in /sm:be-canali/sm:evento-ordine
let $elem:=$prod/sm:evento let $cnt:=fn:count($elem) return $prod/sm:evento[$cnt] ' PASSING EVENTS
COLUMNS
--cod_evento VARCHAR(8)
cod_evento VARCHAR(8) PATH 'sm:cod-evento',
ts_evento VARCHAR(128) PATH 'sm:ts-evento',
cod_status_ordine VARCHAR(8) PATH 'sm:cod_status_ordine'
) as EVENTS11
WHERE
operation_id =1
Any help will be appreciate.
Thank you
PaolaWhat is your db version.
Your query works fine on 11.1.0.6
SQL> create table test(operation_id number,events xmltype);
Table created.
SQL> insert into test values(1,xmltype('<?xml version="1.0" encoding="UTF-8"?>
2 <sm:be-canali xmlns:sm="http://www.oracle.com/serviceManager/output">
3 <sm:evento-ordine>
4 <sm:evento>
5 <sm:cod-evento>003</sm:cod-evento>
6 <sm:ts-evento>2005-08-08 15:40:20.679</sm:ts-evento>
7 <sm:cod_status_ordine>PU</sm:cod_status_ordine>
8 </sm:evento>
9 <sm:evento>
10 <sm:cod-evento>018</sm:cod-evento>
11 <sm:ts-evento>2005-08-26 11:49:07.286</sm:ts-evento>
12 <sm:cod_status_ordine>PU</sm:cod_status_ordine>
13 </sm:evento>
14 <sm:evento>
15 <sm:cod-evento>015</sm:cod-evento>
16 <sm:ts-evento>2005-08-26 11:49:08.257</sm:ts-evento>
17 <sm:cod_status_ordine>PU</sm:cod_status_ordine>
18 </sm:evento>
19 </sm:evento-ordine>
20 </sm:be-canali>'));
1 row created.
SQL>
SQL> SELECT operation_id, EVENTS11.* from test,
2 XMLTABLE(XMLNAMESPACES('http://www.oracle.com/serviceManager/output' as "sm"),
3 'for $prod in /sm:be-canali/sm:evento-ordine let $cnt:=1
4 let $pippo:=$prod/sm:evento return $prod/sm:evento[$cnt] ' PASSING EVENTS
5 COLUMNS
6 cod_evento VARCHAR(8) PATH 'sm:cod-evento',
7 ts_evento VARCHAR(128) PATH 'sm:ts-evento',
8 cod_status_ordine VARCHAR(8) PATH 'sm:cod_status_ordine'
9 ) as EVENTS11
10 WHERE
11 operation_id =1;
OPERATION_ID COD_EVEN TS_EVENTO COD_STAT
1 003 2005-08-08 15:40:20.679 PU
SQL>try this one
SQL> select
2 operation_id
3 , e.*
4 from test,
5 xmltable(xmlnamespaces(default 'http://www.oracle.com/serviceManager/output'),
6 'for $prod in /be-canali/evento-ordine
7 return $prod/evento[position()=last()] '
8 passing events
9 columns
10 cod_evento varchar(8) path 'cod-evento/text()',
11 ts_evento varchar(128) path 'ts-evento/text()',
12 cod_status_ordine varchar(8) path 'cod_status_ordine/text()'
13 ) e
14 where
15 operation_id =1;
OPERATION_ID COD_EVEN TS_EVENTO COD_STAT
1 015 2005-08-26 11:49:08.257 PU Ants -
Hi ,
Here is my Problem.
Suppose I have 100 elements in request.
I service called out a particular service and it sends me back 20 elements updated with some values.
I do not want to replace (element) with (element) TWENTY TIMES.
I donot want to do that. Is there any other way ..Can you try this :
<getWidgetsResponse>
<getWidgetsResult>
for $widget in $yourwidgetresponseelement/widgets/widget
return
<widget>
<widgetnumber> { data($widget/widgetnumber) }</widgetnumber>
<widgetclass> { data($widget/widgetclass) }</widgetclass>
</widget>
</getWidgetsResult>
</getWidgetsResponse>
or change the
{ data($widget/widgetnumber) }</widgetnumber> }
{ data($widget/widgetclass) }</widgetclass> }
in
$widget/widgetnumber
$widget/widgetclass
Good luc.
havent tested it, but should be something like this -
Hi All,
I have am XML document for Machines as follows
<xmldb>
<machines name = "machine1">
<part>nut<\part>
<part>nut<\part>
<part>bolt<\part>
<machines name = "machine2">
<part>bolt<\part>
<part>hinge<\part>
<machines name = "machine3">
<part>nut<\part>
<\xmldb>
I want to know which all machines have more than 1 parts as 'nut'.
I framed a query as
For $i in document("db.xml")/xmldb/machines
Let $j :=$i[part="nut"]
where count($j)>1
Return $i
But I get the error : primary exception unknown switch '-1'. I do not understand why I get this error.
Also, if there is some error in this query, then what could be the alternative way of framing this query ?
Thanks in advance
GAURAVGaurav,
First of all, your xml doc is ill-formed. Here is a well-formed version:
<xmldb>
<machines name = "machine1">
<part>nut</part>
<part>nut</part>
<part>bolt</part>
</machines>
<machines name = "machine2">
<part>bolt</part>
<part>hinge</part>
</machines>
<machines name = "machine3">
<part>nut</part>
</machines>
</xmldb>
Below is what I got with a corrected query:
XQL> for $i in doc("db.xml")/xmldb/machines
2 let $j := count($i[part="nut"]/part)
3 where $j > 1
4 return $i
5 /;
Result
<machines name="machine1">
<part>nut</part>
<part>nut</part>
<part>bolt</part>
</machines>
Regards,
Geoff -
Xquery Problem to Extract Data
Hi,
Here is my code, can some one help me to find how to extract the data of individual node like Address, etc,
declare
vTempData SYS.Xmltype :=
xmltype('<?xml version="1.0" encoding="UTF-8" ?>
<GetAddressResponse xmlns="http://soap.advantagecs.com/WebService/WEB/2005/R1/Customer/">
<Address AddressCode="ORIGINAL" FullName="WBC 3" PrimaryName="WBC 3" CompanyName="WBC" Department="" PhoneNumber="" FaxNumber="" BusinessPhone="" EmailAddress="" JobTitle="" JobPosition="" CommunicationPreference="M" PromoteByPhone="false" PromoteByFax="false" PromoteByEmail="false" PromoteByMail="false" IsOkAsBillTo="true" IsOkAsShipTo="true" xmlns="http://schemas.advantagecs.com/WebService/WEB/2005/R1/DataType/Customer">
<NameElements First="WBC" Middle="" Last="3" Suffix="" Title=""/>
<PostalAddress Line1="" Line2="" Line3="" City="FW" StateCode="TX" PostalCode="76114" County="" CountryCode=""/>
</Address>
</GetAddressResponse>');
begin
dbms_output.put_line(substr(vTempData.extract('/GetAddressResponse/PostalAddress/@City','xmlns="http://soap.advantagecs.com/WebService/WEB/2005/R1/Customer/"').getstringval(),1,255));
end;
ThanksTwo basis issues..
#1 Postal Address is inside Address...
#2. Address defines a new default namespace
So you need the following
SQL> set serveroutput on
SQL> declare
2 vTempData SYS.Xmltype := xmltype(
3 '<?xml version="1.0" encoding="UTF-8" ?>
4 <GetAddressResponse xmlns="http://soap.advantagecs.com/WebService/WEB/2005/R1/Customer/">
5 <Address AddressCode="ORIGINAL" FullName="WBC 3" PrimaryName="WBC 3" CompanyName="WBC" Department="" PhoneNumber="" FaxNumber="" Busi
nessPhone="" EmailAddress="" JobTitle="" JobPosition="" CommunicationPreference="M" PromoteByPhone="false" PromoteByFax="false" PromoteByEma
il="false" PromoteByMail="false" IsOkAsBillTo="true" IsOkAsShipTo="true" xmlns="http://schemas.advantagecs.com/WebService/WEB/2005/R1/DataTy
pe/Customer">
6 <NameElements First="WBC" Middle="" Last="3" Suffix="" Title=""/>
7 <PostalAddress Line1="" Line2="" Line3="" City="FW" StateCode="TX" PostalCode="76114" County="" CountryCode=""/>
8 </Address>
9 </GetAddressResponse>'
10 );
11 begin
12 dbms_output.put_line
13 (
14 vTempData.extract
15 (
16 '/ns1:GetAddressResponse/ns2:Address/ns2:PostalAddress/@City',
17 'xmlns:ns1="http://soap.advantagecs.com/WebService/WEB/2005/R1/Customer/"
18 xmlns:ns2="http://schemas.advantagecs.com/WebService/WEB/2005/R1/DataType/Customer"'
19 ).getstringval()
20 );
21 end;
22 /
FW
PL/SQL procedure successfully completed.
SQL> -
Order of elements - how to get position of child ?
Hi,
I would like to check, if the name of the second element of root is "youngestSon". Is it possible to query this with xpath (I use xquery with xpath-expressions, in fact I already know the name of the element but want to get sure with an exist-statement, that the element's position is 2) ?
<parent>
<oldestSon>A</oldestSon>
<youngestSon>B</youngestSon>
</parent>
Note, that the child element names are different. What I dont need is the second son in the following example (therefor I could use /parent/son[position()==2] )
<parent>
<son>A</son>
<son>B</son>
</parent>
Thank you for any help!
Jule(XPATH / XQUERY PROBLEM)
-
XQuery with recuesive function and instance of operation gives problem
Hi,
<< Using Oracle 11g .06. release >>
I have an Xquery that has recursive functions and "instance of" operation.
I facing the following problem
"error raised during evaluation: oracle.xquery.XQException: XPTY0004: It is a type error if, during the static analysis phase, an expression is found to have a static type that is not appropriate for the context in which the expression occurs, or during the dynamic evaluation phase, the dynamic type of a value does not match a required type as specified by the matching rules in 2.5.4 SequenceType Matching.
Detail: empty sequence encountered where a sequence of length one is expected
The same xQuery works on Berkely DB, Altova XML and Oxygen. I could able to figure out the problem in oracle, where i need an help from you people.
The below is the XQuery Function
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
SELECT XMLQuery('xquery version "1.0";
declare default element namespace "WiMax_CAPC_XML";(: :)
declare namespace HHP="HHP";(: :)
declare namespace AtomicXQuery="AtomicXQuery";(: :)
declare function AtomicXQuery:filter-modifier($element as element(), $attribute-name as xs:string*) {
element {node-name($element)}
for $child in $element/node()
return if ($child instance of element())
then (("deepa instance"),$child,"45",name($child),$attribute-name,
if($child/node() instance of element())
then ("it is an instance of element")
else($child),
AtomicXQuery:filter-modifier($child, $attribute-name))
else $child
let $i:= ora:view("NECB")/node()/child::*[2]/HHP:HHP/HHP:hapNe/HHP:maxCageCount
let $m:=element HHP:deepa {element HHP:deepa1 {"deepa1"}} return AtomicXQuery:filter-modifier($m,"modifier")'
RETURNING CONTENT) AS RESULT
FROM DUAL;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The XML data is available in XMLType table NECB.
The XMLData is as follows
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<?xml version="1.0" encoding="UTF-8"?>
<ConfigDataFile xmlns="WiMax_CAPC_XML" xmlns:HHP="HHP" xmlns:SWM="SWM" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fileHeader cfgMinorVersion="0" cfgSavedMinorVersion="0" cfgVersion="0" fileFormatVersion="CAPC_I1" fileName="NECB.xml" fileType="necb" senderName="CNEOMI" swVersion="D00.00.01.05" vendorName="Motorola"/>
<configData dnPrefix="String">
<HHP:HHP>
<HHP:hapNe>
<HHP:maxCageCount>3</HHP:maxCageCount>
<HHP:minLogLevel>1</HHP:minLogLevel>
</HHP:hapNe>
<HHP:hapCageTable>
<HHP:hapCageEntry cageId="1">
<HHP:numOfModems>1</HHP:numOfModems>
<HHP:numOfBackupModems>1</HHP:numOfBackupModems>
<HHP:hapCagemaxModemCount>1</HHP:hapCagemaxModemCount>
<HHP:minModemLogLevel>1</HHP:minModemLogLevel>
<HHP:hapModemTable>
<HHP:hapModemEntry cageId="1" modemId="1">
<HHP:maxServiceTypeCount>1</HHP:maxServiceTypeCount>
<HHP:hapModemLogLevel>1</HHP:hapModemLogLevel>
<HHP:maxBlackboxCount>1</HHP:maxBlackboxCount>
<HHP:minBlackboxLogLevel>1</HHP:minBlackboxLogLevel>
<HHP:hapBlackboxTable>
<HHP:hapBlackboxEntry cageId="1" modemId="1" blackboxId="1">
<HHP:hapBlackboxLogLevel>1</HHP:hapBlackboxLogLevel>
</HHP:hapBlackboxEntry>
</HHP:hapBlackboxTable>
</HHP:hapModemEntry>
</HHP:hapModemTable>
</HHP:hapCageEntry>
</HHP:hapCageTable>
<HHP:serviceTypeTable>
<HHP:serviceTypeEntry serviceTypeId="1">
<HHP:priority>1</HHP:priority>
<HHP:serviceTypemaxModemCount>1</HHP:serviceTypemaxModemCount>
</HHP:serviceTypeEntry>
</HHP:serviceTypeTable>
<HHP:serviceMappingTable>
<HHP:serviceMappingEntry cageId="1" modemId="1" serviceTypeId="1">
</HHP:serviceMappingEntry>
</HHP:serviceMappingTable>
</HHP:HHP>
<SWM:SWM>
<SWM:wmanIfBsPagingGroupTable>
<SWM:wmanIfBsPagingGroupEntry ifIndex="1" wmanIfBsPagingGroupIndex="1">
<SWM:wmanIfBsPagingGroupId>1</SWM:wmanIfBsPagingGroupId>
<SWM:wmanIfBsPagingControllerId>9</SWM:wmanIfBsPagingControllerId>
<SWM:wmanIfBsPagingCycle>100</SWM:wmanIfBsPagingCycle>
<SWM:wmanIfBsPagingOffset>1</SWM:wmanIfBsPagingOffset>
<SWM:wmanIfBsPagingRetryCount>3</SWM:wmanIfBsPagingRetryCount>
<SWM:wmanIfBsPagingBcastRetryCount>3</SWM:wmanIfBsPagingBcastRetryCount>
<SWM:wmanIfBsPagingControllerAddress>aabbccddeeffaabbccddeeffaabbccddeeffaabbccddeeffaabbccddeeffaabb</SWM:wmanIfBsPagingControllerAddress>
<SWM:wmanIfBsPagingControllerAddressType>1</SWM:wmanIfBsPagingControllerAddressType>
<SWM:wmanIfBsPagingControllerAsnMmId>aabbccddeeff</SWM:wmanIfBsPagingControllerAsnMmId>
</SWM:wmanIfBsPagingGroupEntry>
</SWM:wmanIfBsPagingGroupTable>
<SWM:wmanIfAsnMmTable>
<SWM:wmanIfAsnMmEntry ifIndex="1">
<SWM:wmanIfAsnMmId>AAffFFAAAAFF</SWM:wmanIfAsnMmId>
<SWM:wmanIfAsnMmId/>
</SWM:wmanIfAsnMmEntry>
</SWM:wmanIfAsnMmTable>
<SWM:wmanIfNeighborAsnMmTable>
<SWM:wmanIfNeighborAsnMmEntry ifIndex="1" wmanIfNbrAsnMmId="AAffFFAAAAFFFFFF">
<SWM:wmanIfNbrAsnMmAddress>AAffFFAAAAFFFFFF</SWM:wmanIfNbrAsnMmAddress>
<SWM:wmanIfNbrAsnMmAddressType>1</SWM:wmanIfNbrAsnMmAddressType>
<SWM:wmanIfNbrAsnMmControlSecurityProtocol>1</SWM:wmanIfNbrAsnMmControlSecurityProtocol>
</SWM:wmanIfNeighborAsnMmEntry>
</SWM:wmanIfNeighborAsnMmTable>
</SWM:SWM>
</configData>
<fileFooter dateTime="2007-11-07T09:30:47.0Z" update="2007-11-07T09:30:47.0Z"/>
</ConfigDataFile>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The expected output XML is as follows
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<HHP:deepa xmlns="WiMax_CAPC_XML" xmlns:HHP="HHP">deepa instance<HHP:deepa1>deepa1</HHP:deepa1>45 HHP:deepa1 modifier<HHP:deepa1>deepa1</HHP:deepa1>
<HHP:deepa1>deepa1</HHP:deepa1>
</HHP:deepa>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thanks in advance!Ashwin,
Please try it with 11.1.0.7 instead and let us know if it works.
Regards,
Geoff -
Problem with Xquery transformation in OSB
hi,
My scenario is that I have to break the data in a single tag of xml A, to populate multiple tags of xml B.I am using Xquery transformation and substring function to achieve this. The problem comes when i import the xquery resource in OSB and try to do the transformation in a proxy service it gives the following error
<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-382510</con:errorCode>
<con:reason>
*OSB Assign action failed updating variable "message": com.bea.wli.common.xquery.XQueryException: Error parsing XML: {err}XP0006: "element {http://schemas.xmlsoap.org/soap/envelope/}Body { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type element {http://www.example.org/data}data { {http://www.w3.org/2001/XMLSchema}anyType }*
</con:reason>
<con:location>
<con:node>PipelinePairNode1</con:node>
<con:pipeline>PipelinePairNode1_request</con:pipeline>
<con:stage>stage1</con:stage>
<con:path>request-pipeline</con:path>
</con:location>
</con:fault>
the configuration i have done in the proxy service is this::_
Assign: [XQuery resource..] to [message]
Delete: [.] in [body]
Insert [$message] [as first child of][.] in [body]
The Xquery resource is the .xq file that i have generated for Xquery transformation.
and i m routing this proxy service to a business service that wud take the XML and dump it to my D drive using file protocol.
Edited by: rahulc on Oct 12, 2010 12:40 AM
Edited by: rahulc on Oct 12, 2010 12:41 AMMy Xquery is this::
(:: pragma bea:global-element-parameter parameter="$data1" element="ns0:data" location="data.xsd" ::)
(:: pragma bea:global-element-return element="note" location="note.xsd" ::)
declare namespace ns0 = "http://www.example.org/data";
declare namespace xf = "http://tempuri.org/OSB_Try/tag_break/";
declare function xf:tag_break($data1 as element(ns0:data))
as element(note) {
<note>
<to>
fn:substring(data($data1),
1 ,
6)
</to>
<from>
fn:substring(data($data1),
7 ,
6)
</from>
<heading>
fn:substring(data($data1),
13 ,
6)
</heading>
<body>
fn:substring(data($data1),
19 ,
11)
</body>
</note>
declare variable $data1 as element(ns0:data) external;
xf:tag_break($data1)
and my data is this::
<?xml version="1.0"?>
<ns0:data xmlns:ns0="http://www.example.org/data">DON'T FORGET ME THIS WEEKEND!</ns0:data>
and i have tested this zquery for the above data and this is the transformation its doing::
<note>
<to>DON'T </to>
<from>FORGET</from>
<heading> ME TH</heading>
<body>IS WEEKEND!</body>
</note>
Edited by: rahulc on Oct 12, 2010 1:57 AM -
Problem Using XQuery Operators
I have been able to use every XPath function in the "fn" namespace so far with no problem. Unfortunately, when I tried to use an XQuery operator from the "op" namespace, I get an error. I am trying to use "op:date-equals(xs:date, xs:date)" and I get the following error message:
com.sleepycat.dbxml.XmlException: Error: Function 'date-equal' in namespace 'http://www.w3.org/2005/04/xpath-functions' with 2 argument is undefined [err:XPST0017], errcode = XPATH_PARSER_ERROR
The actual XQuery is: "/ld:library/book[date-equal(2006-11-28, year)]". year is a direct child of book. I've tried putting "./" before year, but I get the same error.Hi Brian,
When reading the XQuery Functions and Operators specification, functions in the "op" namespace are merely used to describe functionality - they are not available to a user of XQuery.
Note also that XQuery does not allow you to write an xs:date as a literal - you will have to cast a string to an xs:date.
In order to compare items as a date, you should first cast the items to an xs:date, and then use the "=" or "eq" operators:
/ld:library/book[xs:date(year) = xs:date("2006-11-28")]John -
Problem with user-defined functions in XQuery String
hello
i've a problem with user-defined functions in XQuery String
details are here (the code is not Human-readable via forum's embedded editor ?? strange)
http://docs.google.com/Doc?id=ddqwddsr_21c96d9x
thanks !!See
michaels> select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?
return {$inputtype}
local:test_function("1","2")' returning content) o from dual
Error at line 5
ORA-19114: error during parsing the XQuery expression:
LPX-00801: XQuery syntax error at '{'
3 return {$inputtype}
- ^
michaels> select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?
$inputtype
local:test_function("1","2")' returning content) o from dual
O
2
1 row selected. -
Hello,
I'm trying to run the XQuery also but even the
XQLPlus interactive command line utility does not work with the sample xml file 'bib.xml' and the XQuery contained in the file 'exmpl1.xql'.
I get the following error:
XQE: Parsing failed 'null'
What can be the problem?
Thanks.Please post this message at:
Forums Home » Oracle Technology Network (OTN) » Products » Database » XML DB -
Hi,
I'm facing problem in getting correct XQuery results with BEA when namespace is provided in XML Document.
I'm trying to execute XQuery against the following XML Document (having xmlns):
<?xml version="1.0"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
<templateId root="2.16.840.1.113883.3.27.1776"/>
<id extension="req_cda_123" root="2.16.840.1.113883.4.49"/>
<code code="34095-0" codeSystem="2.16.840.1.113883.6.1" displayName="COMPREHENSIVE HISTORY & PHYSICAL NOTE"/>
<title>Comprehensive History & Physical Note</title>
<effectiveTime value="20060527"/>
<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
<setId extension="req_cda_123" root="2.16.840.1.113883.4.49"/>
<versionNumber value="1"/>
<recordTarget>
<patientRole>
<id extension="pid_123" root="2.16.840.1.113883.4.49"/>
<patient>
<name>
<given>John</given>
<family>Doe</family>
</name>
<administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1"/>
<birthTime value="19580106"/>
</patient>
<providerOrganization>
<id extension="prov_123" root="2.16.840.1.113883.4.49"/>
</providerOrganization>
</patientRole>
</recordTarget>
</ClinicalDocument>
XQuery is:
let $patFirstName := (//recordTarget/patientRole/patient/name/given)
return if ($patFirstName) then
<result>true {$patFirstName}</result>
else
<result>false</result>
The above XQuery always result in false
I've tried the XQuery which is traversing through root:
let $patFirstName := (./ClinicalDocument/recordTarget/patientRole/patient/name/given)
return if ($patFirstName) then
<result>true {$patFirstName}</result>
else
<result>false</result>
It also results in false.
Then I've changed the XML Document and removed its namespace declaration (xmlns) as:
<?xml version="1.0"?>
<ClinicalDocument>
<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
<templateId root="2.16.840.1.113883.3.27.1776"/>
<id extension="req_cda_123" root="2.16.840.1.113883.4.49"/>
<code code="34095-0" codeSystem="2.16.840.1.113883.6.1" displayName="COMPREHENSIVE HISTORY & PHYSICAL NOTE"/>
<title>Comprehensive History & Physical Note</title>
<effectiveTime value="20060527"/>
<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
<setId extension="req_cda_123" root="2.16.840.1.113883.4.49"/>
<versionNumber value="1"/>
<recordTarget>
<patientRole>
<id extension="pid_123" root="2.16.840.1.113883.4.49"/>
<patient>
<name>
<given>John</given>
<family>Doe</family>
</name>
<administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1"/>
<birthTime value="19580106"/>
</patient>
<providerOrganization>
<id extension="prov_123" root="2.16.840.1.113883.4.49"/>
</providerOrganization>
</patientRole>
</recordTarget>
</ClinicalDocument>
Now the same XQueries result in true.
I don't know why BEA's XQuery engine is behaving like this with namespace declaration. I want expert's help in this regard.
Thanks,
IsmailI found that giving the full URL in declare namespace resolves my issue. Oracle's XMLPatch accepts XDiff document generated by this XQuery.
-
XQuery Namespace Problem !
Hello everyone...
I'm trying to generate a Xdiff document using XQuery. First, i have tried to generate a static XDiff document using Xquery. I'm getting a problem with namespace. The XQuery I have written is
select xmlroot(XMLQuery('
declare namespace xsi="xsi"; (: :)
declare namespace xd="xd"; (: :)
let $chk1:=( <xd:delete-node xd:node-type="element" xd:xpath="/RootElement[1]/Invalid[1]" />)
return <xd:xdiff xsi:schemaLocation="http://xmlns.oracle.com/xdb/xdiff.xsd http://xmlns.oracle.com/xdb/xdiff.xsd" xmlns:xd="http://xmlns.oracle.com/xdb/xdiff.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<?oracle-xmldiff operations-in-docorder="false" output-model="current" diff-algorithm="global"?>{$chk1}</xd:xdiff>
returning content), VERSION '1.0')
from dual;
The above query gives me the output
<?xml version="1.0"?>
<xd:xdiff xmlns:xd="http://xmlns.oracle.com/xdb/xdiff.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLo
cation="http://xmlns.oracle.com/xdb/xdiff.xsd http://xmlns.oracle.com/xdb/xdiff.xsd">
<?oracle-xmldiff operations-in-docorder="false" output-model="current" diff-algorithm="global"?>
<xd:delete-node xmlns:xd="xd" xd:node-type="element" xd:xpath="/RootElement[1]/Invalid[1]"/>
</xd:xdiff>
I don't want that xmlns="xd" attribute. How to eliminate that?
Please help me.
Thanks in advance,
R Kaja MohideenI found that giving the full URL in declare namespace resolves my issue. Oracle's XMLPatch accepts XDiff document generated by this XQuery.
Maybe you are looking for
-
Multiple computer users, one iTunes account
One computer, multiple users (each logon), one iTunes account. All songs are downloaded to D:. I want all songs downloaded by any user to show in everyones library. If I purchase a song how do I make it also show in other user's libraries?
-
Why don't my event show up in different colors like i hear they would
when i watched the video of ipad 2, it showed that the events were in diferent colors to help distinguish them, but on my ipad it is all purple
-
Exchange 2010 with Outlook 2007 Shared Contacts with Attachments
We have an Exchange 2010 server. There is only one Exchange server so all roles are on this server. Found out that sharing contacts between users misses something. If a user has Attachments or Notes in their contacts we can see via the Attachment co
-
Downloaded iOS 6 to my iphone 3gs it powers on and then crashes
Downloaded iOS6 on my iphone 3gs and it fully downloaded but when it rebooted it kept powering on giving the Apple logo, but then it flickers and turns off
-
Ordering an iPhoto album from Macau
Apparently I can't order an iPhoto album as I live in Macau. Used to have a Canadian CC so it wasn't a problem previously. Anyone know of a work-around?