Validation to find the Root Node !!!!
Hi All,
Is it possible to write a Validation to find the Root Node of the Hierarchy,
For E.g. If we have a three level hierarchy
Printer
Dot Matrix
T123
So is there a way I can check if my Root node value is Printer or not, because in Data Manager the value that is selected from the hierarchy drop down is the leaf node.
Regards,
Parul
Hi Jitesh,
The solution is as follows:
MDM does not give us the option to traverse to the grandparent of the leaf node..
In the example that we have taken :
Printer
- Dot Matrix
- Laser
--Laser1
--Laser2
Here if we want to check if the Grandparent of Laser1 is Printer, this cannot be done using the simple Validation, because through validation also we can at max find the parent of the current node i.e. we can traverse till Laser (for Laser 1 leaf node).
Further we cannot use Laser as the node because in MDM we have to traverse completely through the last node and select it in Data Manager. So again we cannot search for Laser -> Parent.
The Work Around that I have used is :
I have created a new field and every time I import data I have mapped this field with the first Level Node and have put the Validation on this field.
Eg: The field name is Root Node, so everytime the data is imported, Level 1 is mapped to Root Node and so all the Root node values are imported in the Root Node field that we have created and everytime the Validation Runs on this Root Node field and accordingly the process follows.
Hope that would be helpful to you all!!!!
Regards,
Parul Malhotra
Similar Messages
-
Cannot find the root of your orgchart
Hi,
I have configured the Succession planning, Career planning, Manager and Talent Framework in Nakisa 3.1. When I log into below URL, it gives me the error "Cannot find the root of your orgchart". So far I followed the Admin guide for Succession planning.
http://hostname:port/Manager/default.jsp.
Cannot find the root of your orgchart. The orgchart box may have been deleted or incorrectly specified, or no valid org structure can be found for the selected effective date. Please change the root of the chart or select another effective date
Log file:
535. 25 May 2011 16:26:55 INFO com.nakisa.Logger - Invoking action:setorgchartdirectory [SAPMyIndirectReportsOrgChart, manager]. For processor OrgChartAppEventProcessor. Against controller OrgChartCtr
536. 25 May 2011 16:26:55 INFO com.nakisa.Logger - FunctionRunner : ensurePool : Current pool size:0
537. 25 May 2011 16:26:55 ERROR com.nakisa.Logger - com.nakisa.integration.sap.SAPConnector : HRMSS_GET_ORGSTRUCTURE_AS_XML : com.sap.mw.jco.JCO$Exception: (101) RFC_ERROR_PROGRAM: 'ashost' is missing
538. 25 May 2011 16:26:55 ERROR com.nakisa.Logger - com.sap.mw.jco.JCO$Exception: (101) RFC_ERROR_PROGRAM: 'ashost' is missing
539. 25 May 2011 16:26:55 ERROR com.nakisa.Logger - Bapi_Hroci.getDataSetBase() : java.lang.NullPointerException: while trying to invoke the method org.w3c.dom.Node.getNodeType() of an object loaded from local variable 'node'
540. 25 May 2011 16:26:55 INFO com.nakisa.Logger - setorgchartdirectory on OrgChartAppEventProcessor took: 197ms
541. 25 May 2011 16:26:56 INFO com.nakisa.Logger - Invoking action:refresh []. For processor FalconModuleControlAppProcessor. Against controller ModuleControlCtr
542. 25 May 2011 16:26:56 INFO com.nakisa.Logger - refresh on FalconModuleControlAppProcessor took: 31ms
Regards,
SagarHi Sagar,
Could you please check under data connection your connection string?
It should be the SAP connection string.
The format of the connection string:
ASHOST=SAPONE SYSNR=02 USER=USERNAME PASSWD=welcome1 CLIENT=800
SAPONE = SAP host name
02 = system number
USERNAME = username
welcome1 = password
800 = client number
Also, maybe this is a permission issue, please double check that
the user that you are accessing SAP with has the correct permissions.
Give them SAP_ALL if nexessary to investigate.
Hope this helps,
kind Regards,
Matthew -
Cannot find the root of your orgchart. ORGCHART 3.0 LIVE
Hello All,
I know in the forum exists many threads about this. But no help to solve my issue.
Let's...
I can't see to view my orgchart because the follow message:
Cannot find the root of your orgchart. The orgchart box may have been deleted or incorrectly specified, or no valid org structure can be found for the selected effective date. Please change the root of the chart or select another effective date.
In the Log i have:
10502. 27 May 2011 18:50:48 INFO com.nakisa.Logger - FunctionRunner.executeFunctionDirect: HCM_GET_ORGSTRUCTURE_AS_XML took: 28ms
10503. 27 May 2011 18:50:48 ERROR com.nakisa.Logger - com.nakisa.integration.sap.BuildingBlocks : null
10504. 27 May 2011 18:50:48 ERROR com.nakisa.Logger - java.lang.NullPointerException
10505. 27 May 2011 18:50:48 ERROR com.nakisa.Logger - Nakisa.SAP.SAPProcessor.BAPI_Hroci : null
10506. 27 May 2011 18:50:48 ERROR com.nakisa.Logger - java.lang.NullPointerException
10507. 27 May 2011 18:50:48 ERROR com.nakisa.Logger - com.nakisa.framework.data.paging.PageObject_Dynamic : executeSQL : java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
10508. 27 May 2011 18:50:48 WARN com.nakisa.Logger - ChartingProcessor : StartChart : Could not create nodes. Error message returned:Index: 0, Size: 0
I don't no whats happened.
Can anybody help-me?
ThanksThanks for reply.
The original problem is solved.
The Transport Package had not been done correctly.
But the message continues.
In the log i have:
363. 31 May 2011 11:42:00 INFO com.nakisa.Logger - com.nakisa.troll.baseapp.Controller : : Controller.java, No value found for argument key: idLI
364. 31 May 2011 11:42:00 INFO com.nakisa.Logger - Invoking action:setorgchartdirectory [SAPOrgUnitOrgChart, null]. For processor OrgChartAppEventProcessor. Against controller OrgChartCtr
365. 31 May 2011 11:42:00 INFO com.nakisa.Logger - FunctionRunner : ensurePool : Current pool size:0
366. 31 May 2011 11:42:00 INFO com.nakisa.Logger - FunctionRunner : ensurePool : Current pool size:0
367. 31 May 2011 11:42:00 INFO com.nakisa.Logger - FunctionRunner.executeFunctionDirect: HCM_GET_ORGSTRUCTURE_AS_XML took: 221ms
368. 31 May 2011 11:42:00 INFO com.nakisa.Logger - FunctionRunner : ensurePool : Current pool size:1
369. 31 May 2011 11:42:00 INFO com.nakisa.Logger - FunctionRunner : ensurePool : Current pool size:1
370. 31 May 2011 11:42:00 INFO com.nakisa.Logger - FunctionRunner.executeFunctionDirect: HCM_GET_ORGSTRUCTURE_AS_XML took: 90ms
371. 31 May 2011 11:42:00 INFO com.nakisa.Logger - FunctionRunner : ensurePool : Current pool size:1
372. 31 May 2011 11:42:00 INFO com.nakisa.Logger - FunctionRunner : ensurePool : Current pool size:1
373. 31 May 2011 11:42:00 INFO com.nakisa.Logger - FunctionRunner.executeFunctionDirect: HCM_GET_ORGSTRUCTURE_AS_XML took: 63ms
374. 31 May 2011 11:42:00 INFO com.nakisa.Logger - FunctionRunner : ensurePool : Current pool size:1
375. 31 May 2011 11:42:00 INFO com.nakisa.Logger - FunctionRunner : ensurePool : Current pool size:1
376. 31 May 2011 11:42:01 INFO com.nakisa.Logger - FunctionRunner.executeFunctionDirect: HCM_GET_ORGSTRUCTURE_AS_XML took: 65ms
377. 31 May 2011 11:42:01 WARN com.nakisa.Logger - ChartingProcessor : StartChart : Could not create nodes. Error message returned:For input string: "True"
378. 31 May 2011 11:42:01 INFO com.nakisa.Logger - setorgchartdirectory on OrgChartAppEventProcessor took: 523ms
Whats meaning this parrameter: iDli???
Thanks for advance. -
OrgChart - Cannot find the root of your orgchart
Dear Experts,
I have done the required configuration for my NAKISA 3.0 SP 01 Verison with CE 7.1.
But when i am trying to acess the End user Link like http://ServerName:Port/OrgChart/default.jsp from the CE 7.1 Portal .
First Screen it self it shows the this Erorr message.
Cannot find the root of your orgchart. The orgchart box may have been deleted or incorrectly specified, or no valid org structure can be found for the selected effective date. Please change the root of the chart or select another effective date.
I would like to try drilldown - i got this error information in my CDS.LOG file
1846. 24 Feb 2012 16:55:56 ERROR com.nakisa.Logger - [NakisaHRConnector.NakisaRfcChart]: Error retrieving data - : I:/NAKISA/RFC_CHART:000 HRWPC_STRUC_GET_MULTIPLE_ROOTS(PATH_NOT_FOUND)
1847. 24 Feb 2012 16:55:56 ERROR com.nakisa.Logger - BAPI_SAP_OTFProcessor_Chart : while trying to invoke the method com.nakisa.framework.data.DataTable.cloneShallow() of an object loaded from local variable 'p_dt_keyStructure'
So Can you please help me on crack this issue.
Reagrds
Dileep PI recommend this thread:
[http://forums.sdn.sap.com/thread.jspa?messageID=10995885#10995885]
Issue Reason: Issue happened as there are no available evaluation paths defined by Nakisa.
Solution: all the evaluation paths defined by Nakisa will be in the transport pkg provided by Nakisa. Import transport pkg to get the contents.
Stephen -
Hi there,
All my reports are throwing below error in a sharepoint site configured with Access services. Does anyone have a clue what's causing it?
An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'Default'. (rsErrorExecutingCommand)
The SharePoint list query is not valid: Data at the root level is invalid. Line 1, position 1. (rsSPDataProviderError)
Thanks
ManvirHi Manvir,
For troubleshooting your issue, please go to C:\Inetpub\wwwroot\wss\VirtualDirectories\ find your Web Application (represented by a port number), then delete an unknown folder created by sharepoint, namely vti_cnf from all the folders and sub-folders in
your web application.
Reference:
http://forums.asp.net/t/985790.aspx?Data+at+the+root+level+is+invalid+Line+1+position+1
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
FINDING THE LARGEST NODE IN A BINARY TREE
can anybody help me with a recursive function to find the LARGEST NODE IN A BINARY TREE if you are given the following specs. PLEASE NOTE THAT IT'S A BINARY TREE NOT A SEARCH TREE.
Public class Node {
Node left;
Node right;
int val;
int Largest(Node r){
}Naah, just studying and thinking it's an interesting
task Well, I diagree.
since each time the recursive function is
called, variables you hve in the method will be over
written with the new recursive call.So what? For variables that are valid inside the scope of the method: that's how it supposed to be. Vor variables with a larger scope: hand them over as an additional argument. -
How do I find the root cause of a NetConnection closed event?
Hi,
I am maintaining a large project developed in Flex/Actionscript.
The application is using tunneling (RTMPT), and we often get Netconnection "closed" events.
There is no problem with the physical network.
I think the event may be caused by either a TCP/HTTP/RTMP event, or may be caused by
some function in the client calling close() on the connection.
How can I find the root cause of the "closed" event being thrown?
Thanks,
DavidThanks for the information. It is helpful but it seems there must be a specification of
what the client side is expecting, independent of any server implementation.
When I say client side, I mean the Adobe communication libraries.
Where is the specification or source code for how the client libraries treat HTTP tunneled requests and responses?
One question in particular: How does the client side library treat a
Connection: Keep-Alive
versuse
Connection:close
HTTP header setting? -
'Could not find the requested node error' when guests join the meeting room
I am working on a program where the owner would allow guests after they knock to enter the meeting room. Upon acceptance, they would also be permitted to publish/subscribe audio.
My ' meeting owner' application code is an adaptation of the Knocking Queue example. The 'owner app' code has the following settings in its creation complete.
// Require that guests must knock.Note that this line changes the setting of your room so that in future anyone guest coming in
// has to knock.
cSession.roomManager.guestsHaveToKnock = true;
//Enable autopromote
cSession.roomManager.autoPromote =
true;
I get an error when the owner logins in first and accepts the guest into the meeting room.
// Event handler function for displaying the selected Alert button.
private function alertClickHandler(event:CloseEvent):void {
var queue:Array = pendingArray;
if ( cSession.userManager.myUserRole == UserRoles.OWNER ) {
var item:Object = pendingArray.shift();
trace (item["label"]);
trace (item["descriptor"].userID);
if (event.detail==Alert.OK)
//Admit user for chatting
cSession.roomManager.knockingQueue.acceptUser(item["descriptor"].userID);
//Allow user to publish audio - supposed to be promoted through room setting
//audioPub.setUserRole(item.descriptor.userID, UserRoles.PUBLISHER);
else //if (event.detail==Alert.CANCEL)
cSession.roomManager.knockingQueue.denyUser(item["descriptor"].userID);
The 'client' application throws the following error.
SWF] C:\Documents and Settings\a246216\My Documents\Flex Builder 3\Client Chat Tool\bin-debug\ClientChatTool.swf - 1,572,471 bytes after decompression
AFCS Beta Build # : 0.92
requestInfo http://connectnow.acrobat.com/fidelity2/ramr?guk=ZzprOg==&mode=xml&x=0.011843591462820768
Getting FMS at https://na2.connectnow.acrobat.com/fms?ticket=1468amkp7k35g, attempt #1/3
result: <fms>
<origin>fms2.acrobat.com</origin>
<proto_ports>rtmps:443</proto_ports>
<retry_attempts>2</retry_attempts>
</fms>
#FMSConnector# Tue May 12 11:26:50 GMT-0400 2009 protocols: [object ProtocolPortPair]
#FMSConnector# Tue May 12 11:26:50 GMT-0400 2009 [attempt 1 of 2] Connecting to 0/0: rtmps://fms2.acrobat.com/cocomo/na2-sdk-825d634c-46ed-4ed3-aa58-7450f0f7e36a/ramr #startProtosConnect#
#FMSConnector# Tue May 12 11:26:50 GMT-0400 2009 tempNetStatusHandler 0/1,NetConnection.Connect.Success
#FMSConnector# Tue May 12 11:26:50 GMT-0400 2009 isTunneling? false
#FMSConnector# Tue May 12 11:26:50 GMT-0400 2009 is using RTMPS? true
RECEIVED LOGIN AT SESSION
.user descriptor from server [object]
.displayName [string]= k
.userID [string]= GUEST-110858C2-4F16-4FE8-BF2C-D572F915FEC5
.affiliation [number]= 5
.role [number]= 5
RECEIVENODES UserManager
receiveAllSynchData UserManager
checkManagerSync:[object UserManager]
RECEIVENODES FileManager
receiveAllSynchData FileManager
checkManagerSync:[object FileManager]
RECEIVENODES AVManager
receiveAllSynchData AVManager
checkManagerSync:[object StreamManager]
RECEIVENODES RoomManager
receiveAllSynchData RoomManager
checkManagerSync:[object RoomManager]
RECEIVENODES Chat
receiveAllSynchData Chat
Error: Could not find the requested node.
at com.adobe.rtc.sharedModel::CollectionNode/getNodeConfiguration()[C:\work\main\connect\coc omoPlayer10\src\com\adobe\rtc\sharedModel\CollectionNode.as:394]
at com.adobe.rtc.sharedManagers::StreamManager/getNodeConfiguration()[C:\work\main\connect\c ocomoPlayer10\src\com\adobe\rtc\sharedManagers\StreamManager.as:577]
at com.adobe.rtc.collaboration::AudioPublisher/onUserRoleChange()[C:\work\main\connect\cocom oPlayer10\src\com\adobe\rtc\collaboration\AudioPublisher.as:1009]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobe.rtc.sharedManagers::StreamManager/onUserRoleChange()[C:\work\main\connect\cocom oPlayer10\src\com\adobe\rtc\sharedManagers\StreamManager.as:1410]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobe.rtc.sharedModel::CollectionNode/http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveCascadingUserRole()[C: \work\main\connect\cocomoPlayer10\src\com\adobe\rtc\sharedModel\CollectionNode.as:813]
at com.adobe.rtc.messaging.manager::MessageManager/http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveUserRole()[C:\work\mai n\connect\cocomoPlayer10\src\com\adobe\rtc\messaging\manager\MessageManager.as:715]
at com.adobe.rtc.session.managers::SessionManagerBase/receiveUserRole()[C:\work\main\connect \cocomoPlayer10\src\com\adobe\rtc\session\managers\SessionManagerBase.as:352]
The above error is thrown just when the 'guest' is accepted into the meeting room. The guest has not published anything at this point.
The chat part is working fine.
I have tried different ways to resolve this issue but I am not getting anywhere. I have tried different things. Your help is appreciated.
RamIt is win 7 64 bit system and same error on Illustrator x86 and x64.
-
How do i get to display the nodes under the root node in a JTree?
In my JTree there is a root node.This root node has 4 child nodes.Each child node in turn has nodes under it.What i need to do is just display the child nodes under the root node i.e., the four child nodes and keep these child nodes in a collapsed state.How do i go sbout this?
Please try this:
tree.expandRow(0);
SwingUtilities.invokeLater(new Runnable(){
public void run(){
tree.setRootVisible(false);
});If you want to show the RootHandles:
tree.setShowsRootHandles(true);If you want to keep nodes in collapsed state (not expandable):
tel = new TreeWillExpandListener() {
public void treeWillExpand(TreeExpansionEvent event) throws ExpandVetoException {
throw new ExpandVetoException( event, "Don't want" );
public void treeWillCollapse(TreeExpansionEvent event) throws ExpandVetoException {
tree.addTreeWillExpandListener(tel);Some reading material:
http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html
http://java.sun.com/docs/books/tutorial/uiswing/events/treewillexpandlistener.html
Edited by: Andre_Uhres on Nov 14, 2007 5:17 PM
Edited by: Andre_Uhres on Nov 14, 2007 5:33 PM
Edited by: Andre_Uhres on Nov 14, 2007 5:39 PM -
Hi,
I have the following issue when deploying:
Solution Deployment : Missing one or more of the following attributes from the root node in solution .wsp: assembly '', type ''
The solution is a farm solution (was never sandbox) and it deploys fine.
It was updated several times with success. We did not see this issue until recently when we had some other issue (unrelated) and looked at the logs. The solution is updated without problem and updates are available for the user. But we can see this error
in the logs at the update time.
Any idea what might cause this?
Pop AnisiaHi,
This error is wide meaning, as it can come from differences between SP versions, variables types used, bad manifest file, WebConfiguration ...
You can try to redeploy the solution.
retracted the solution,removed all the previous ref, removed dll from GAC and folder from 14\features and reset the iis, deploying it again.
Here are some similar issue post, you can use as a reference:
https://social.technet.microsoft.com/Forums/office/en-US/72ac9a02-3a51-48b8-9e36-3b24a2d4da74/missing-one-or-more-of-the-following-attributes-from-the-root-node-in-solution-alertbdcwsp?forum=sharepointgeneralprevious
https://social.technet.microsoft.com/Forums/office/en-US/331af288-5ba6-48a7-9e9d-ac4e4bc8f8fa/missing-one-or-more-of-the-following-attributes-from-the-root-node-in-solution-xxxwsp-assembly-?forum=sharepointdevelopmentprevious
In additional, you can check the ULS log (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS) to get the detailed information.
I hope this helpful.
Best Regards,
Lisa Chen
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Cannot find the root of your orgchart. The orgchart box may have been delet
Hi All
I have searched to forum for similar issues, but none seem to apply to the errors I get in the CDS log.
When try-ing to view the Orgchart, in the Orgchart Console I get the following message "Cannot find the root of your orgchart. The orgchart box may have been deleted or incorrectly specified."
This is the entry in the CDS log.
6/29/2010 9:26 AM: ERROR: FieldsType : fieldName = ObjectId; tableName = PositionEmpHierarchy; : Source {.Net SqlClient Data Provider}: Message {Invalid object name 'PositionEmpHierarchy'.}
6/29/2010 9:26 AM: ERROR: FieldsType : fieldName = ObjectId; tableName = PositionEmpHierarchy; : Source {.Net SqlClient Data Provider}: Message {Invalid object name 'PositionEmpHierarchy'.}
6/29/2010 9:26 AM: ERROR: FieldsType : fieldName = ObjectId; tableName = PositionEmpHierarchy; : Source {.Net SqlClient Data Provider}: Message {Invalid object name 'PositionEmpHierarchy'.}
6/29/2010 9:26 AM: ERROR: FieldsType : fieldName = ObjectId; tableName = PositionEmpHierarchy; : Source {.Net SqlClient Data Provider}: Message {Invalid object name 'PositionEmpHierarchy'.}
6/29/2010 9:26 AM: ERROR: FieldsType : fieldName = 50000025; tableName = PositionEmpHierarchy; : Source {.Net SqlClient Data Provider}: Message {Invalid object name 'PositionEmpHierarchy'.}
6/29/2010 9:26 AM: ERROR: CommandProcessor.getDataSet : select top 25 ObjectId,ShortText,LongText,ParentNo,ParentName,Relation,ObjectType,Pernr,EmpAbbr,EmpName,PositionParent,Subty,Prozt,Vacan,Status from PositionEmpHierarchy where (ObjectId=50000025) order by Upper(ObjectId) asc, Upper(Pernr) asc, Upper(PositionParent) asc|DC=DestinationConnection : Source {.Net SqlClient Data Provider}: Message {Invalid object name 'PositionEmpHierarchy'.}
Any suggestions as to what I am missing ?Hi Spike,
There could be a number of reasons why the PositionEmpHierarchy table has not been created. My advice is to run an extract and then run each line of your join statements in your DB. This will highlight where the problem lies.
Good luck!
Luke -
Function module to find the top node in the Profit Center standard hierarch
Hi,
Please let me know the function modules/Tables to do the following.
1. To find the Top node in the Profit center standard hierarchy which is displayed via KCH6N Transaction.
2. To read/retrieve standard hierarchy displayed in KCH6N Transaction.
Thanks in Advance,
Madhuri.Hi Madhuri ,
have a look @<b>SETLEAF</b> or SET* in se11 , u can get the Top Node by putting the Logic like this
ex: i am searching for Top Node of A3
<b>select setname from setleaf where valfrom eq 'A3'.</b>and for that selected setname u have to do one more
loop.
<b>select setname from setleaf where valfrom eq 'A2'.</b>
then only u will net Node A1.
this is a sample code only , dont check F2.
let me know if u want more inputs of Set Ids.
regards
prabhu
[email protected]
NjoySAP -
Ldif2db command fails to import data and deletes the root node
ldif2db command fails to import data into LDAP.
The command used was
ldif2db -n userRoot -s "dc=example,dc=com" -i test.ldif
The test.ldif conains the nodes under dc=example,dc-com
eg: ou=test,dc=example,dc=com
But on executing the command the root node "dc=example,dc=com" itself got deleted. The console output was like "Skipping entry uid=test001,ou=test,dc=example,dc=com" for all the entries present in ldif.
What might be the reason for this ? Any clues ?
The reason y i am trying to do this ldif2db is to preserve the createtimestamp and modifytimestamp while migrating data from one Directory Server to another. Any other ways of doing it ?ldif2db is the right command to migrate data and preserve those attributes like createtimestamp and modifytimestamp.
However, when this command is used, it will first remove everthing before it load whatever you want. So you need to be very careful. I got this terrible problem as well.
In my experience, if you use this command, don't use "-s". You can just use:
ldif2db -n suffixName -i test.ldif
If you only have one suffix (database), then you can use "-n userRoot".
Also, if you migrate your data from server A to server B, you'd better dump the data using db2ldif -n userRoot -a test.ldif from server A. Then load it into server B using ldif2db -n userRoot -i test.ldif. -
[JAXB] Multiple imports in the root node
Hello,
I use JAXB and am doing this scenario : unmarshalling an XML document created manually, and automatically marshalling another from the generated Java code.
This is a multiple schemas / multiple imports issue.
I would like the 2 XML documents to be similar, but in the first one, I get :
<?xml version="1.0" encoding="UTF-8"?>
<aaa:first xmlns:aaa="http://aaa" xmlns:bbb="http://bbb">
</aaa>
and in the second :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<aaa:first xmlns:aaa="http://aaa" xmlns:ns1="urn:abc" ...>
<bbb:second xmlns:bbb="http://bbb">
</bbb>
</aaa>
So, how is that possible to import multiple namespaces (xmlns) in a single node please ? It seems that JAXB does the import only when needed, and won't group all the imports in the root node.
(moreover, how can I disable the "standalone" attribute in the header of the generated XML document please ?)
Thanks in advance.Ok, I found a solution to get all namespaces placed in the root of the generated XML document : one have to implement a NamespacePrefixMapper
marshaller.setProperty("com.sun.xml.bind.namespacePrefixMapper",new NamespacePrefixMapperImpl());and redefining its ' public String[] getPreDeclaredNamespaceUris()' method.
For now, the problem is that namespaces declared there are somehow static. In fact, when unmarshalling Java objects from an XML document, it seems that this document namespaces are lost.
Do you know a way these namespaces would be kept somewhere, associated with the unmarshalled object ? I need these namespaces in the case that I would create another XML file from it in the future.
It's seems logical to keep this with the object, so did I miss something please ? -
How i can insert icon only in the root node
i need to insert icon only in the root node, with the other nodes i don't have problem.
Use a jQuery menu like Superfish, or you can purchase an extension like the ones offered by Project VII
http://plugins.jquery.com/superfish/
http://www.projectseven.com/products/index.htm
Maybe you are looking for
-
Enterprise mitigation for APSA08-01 with Acrobat Pro 7.0.9
Hello, My organization has 30,000+ users with Acrobat Pro 7.0.9, and we are currently in the process of purchasing the upgrade to 8. The problem is that this vulnerability presents an unacceptable risk until that purchase has been made. Is there an E
-
Saving changes to PDFs in Preview
So I make annotations to and highlight PDFs using Preview, and it works to my liking. The only issue that I've been encountering is that when I save, it always asks that I save as, instead of just save. Is there a way that I can circumvent this?
-
When adding a bookmark sometimes the web page name is too long. I used to be able to use my mouse, highlight the letters/words that I don't want, then use delete to truncate the desired bookmark name. Since the latest update/upgrade, Firefox won't le
-
Difficult to transfer saved games by Storm8(How?)
I bought my wife a new iPad. We backed up the contents and transferred eveything to the new iPad. Eveything worked fine except the Storm8 or Teamlava games like Bakery Story etc. It turns out you can't just backup and restore those apps in a new iPad
-
Level0 Extract using MaxL from Multicurrency Planning application
I have a multi currency Planning application with 2 Dense and 6 SParse dimension. Account And Currency Dense Rest all Sparse when i am running the level0 export using a maxL scrit to get data in Column format, it is generating all memebr in Column ex