HI Can I add a child node to an Element Node with a name that exists
HI,
Can I add a child node to an Element Node with a name that is already existing in the Element Node.
Let me explain what I need exactly.
My Existing element Node looks like this:
<form>
<name>
<FirstName></FirstName>
<LastName></LastName>
</name>
</form>
Can I add another child node with hte name 'FirstName' to the 'name' node ..?
I want to put a attribute rvsn with a value 1 for the original 'FirstName' element Node.
so the new Element Node should look like the foloowing:
<form>
<name>
<FirstName rvsn="1"></FirstName>
<FirstName></FirstName>
<LastName></LastName>
</name>
</form>
Hopefully this is valid XML !!
when I tried to use appendChild, it removed the previous node and put the new one. Thats what is the documentation also said.. I read it after I tried it :(
Anyway, ther should be another way to add a node like that.
Any hints, ideas will be of great help.
-Thanks in advance !!
Murthy
// this method will start marking the old values with a revision number.
private void saveNodeDetails (Node node) {
String Content = "";
String nodeName = "";
int rvsn = getRvsn();
int type = node.getNodeType();
int tempRvsn = 0;
String tempNodeName = "";
String tempParentNodeName = "";
Node tempParentNode = null;
// check if element
if (type == Node.ELEMENT_NODE) {
Node traverseNode = node;
nodeName = getNodeName(traverseNode);
if (nodeName != null && nodeName.trim().length() > 1)
nodeName = nodeName.substring(0, nodeName.length() - 1);
if (_debug)
System.out.print("2. ELEMENT_NODE name## " + nodeName);
// if the element has no children, its leaf node.
// if its there in the Hashtble, then update the value from the hashtable.
if (reqParams.containsKey(nodeName)) {
if (_debug) System.out.println("3. Hash Value = " + reqParams.get(nodeName).toString());
if (traverseNode == null)
if (_debug) System.out.println("3A. traverseNode == null ");
if (node == null)
if (_debug) System.out.println("3B. node == null ::(((((");
// get the node children
NodeList children = node.getChildNodes();
// end of getting children for the Node.
if (_debug) System.out.println("4. Got ChildNodes ");
if (children != null) {
int length = 0;
length = children.getLength();
if (_debug) System.out.println("5. Got children Length = " + length);
if( ((Element) node).hasAttribute("rvsn") ){
System.out.println(" node has Attribute(rvsn) ");
tempRvsn = Integer.parseInt( ((Element) node).getAttribute("rvsn") );
if( tempRvsn == rvsn){
// user is changing the same data again and again.
// so remove the text node and append the new value as text node finally
for (int index = 0; index < length; index++) {
if (_debug) System.out.println("6. index = " + index);
if (_debug) System.out.println(index + ": children.item( index )@saveNodeDetails@ContainerDoc = " + children.item(index).getNodeType() + " -- " + children.item(index).getNodeValue());
if (children.item(index).getNodeType() == Node.TEXT_NODE)
node.removeChild(children.item(index));
}else{
int l= 0; // do not do any thing if the current node rvsn is different from the rvsn of the DOM
// programme logic could enter this part when ther are multiple revisions of the NODe in the DOM,
// and we are traversing through the previous versions of it.
} else{
System.out.println(" node has no Attribute(rvsn) ");
// the node has no rvsn attribute.
// it is the initial version of the dom.
// add the rvsn from the DOM to this NODE for the first time.
((Element) node).setAttribute("rvsn", (new Integer(rvsn)).toString() );
// get parent node and add a new child node with the same name as current node.
// so parent node will have the previous node with a rvsn and a new node without the rvsn !!
tempNodeName = node.getNodeName();
tempParentNode = node.getParentNode();
tempParentNodeName = tempParentNode.getNodeName();
System.out.println(" adding node: " + tempNodeName + " to : " + tempParentNodeName);
node = addNode(tempParentNode, tempNodeName, "");
getNodeName(node); // print the name of the node after modifying it !!!
printSiblings(node);
//System.out.println(" After adding the node : " + getNodeName(node));
} else if (_debug) {
System.out.println("7. Node name exist in the Hash but has no children to be removed..!!:: @saveNodeDetails ");
if (_debug) System.out.println("7B. Update the dom from the hash value " + nodeName + ", " + reqParams.get(nodeName).toString());
node.appendChild(document.createTextNode(reqParams.get(nodeName).toString()));
if (node != null) {
if ( ( (Element) node).hasAttribute("rvw"))
( (Element) node).removeAttribute("rvw");
if ( ( (Element) node).hasAttribute("msg"))
( (Element) node).removeAttribute("msg");
if ( ( (Element) node).hasAttribute("dor"))
( (Element) node).removeAttribute("dor");
}// end of if (type == Node.ELEMENT_NODE)
NodeList children = node.getChildNodes();
if (children != null) {
for (int i = 0; i < children.getLength(); i++) {
saveNodeDetails(children.item(i));
} // end of saveNodeDetails method
public Node addNode(Node parentNode, String nodeName, String value){
Node newNode = null;
try{
newNode = parentNode.appendChild( document.createElement(nodeName) );
newNode.appendChild( document.createTextNode( value ) );
}catch(Exception Ex){
System.out.println("2. Exception@addNode@ContainerDoc = " + Ex);
return newNode ;
} // end of addNode method
Similar Messages
-
how can I add a language on pages (Greek) to check the spelling when that language is not on the list?
I can see other languages available for spelling check, but not Greek and I dont see how to add it.
I have added the Greek keyboard on the Mac, so I can write in Greek , but I dont know how to check the spelling in Greek on pagesYou can try to add a 3rd party spellchecker
http://milaraki.com/blog/2010/11/greek-spelling-at-pages-how-to/ -
Clicking on paper clip icon does nothing , can't add attachments therefore, using MAC 10.6.3 with FireFox 3.6.6
== This happened ==
Every time Firefox opened
== I downloaded latest upgrade ie 3.6.6See http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
-
Hi,
When i am trying to deploy sharepoint 2010 application in VS 2010, i am getting the below error:
"Error occurred in deployment step 'Add Solution': The definition specifies a claim provider with a name already in use."
How to fix this?
Thank youYou can use:
$provider = Get-SPClaimProvider | where {$_.DisplayName -eq "Provider DisplayName"}
$mgr = Get-SPClaimProviderManager
$mgr.ClaimProviders.Remove($prov)
$mgr.Update()
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
After upgrading from 10.7.5 to 10.8.3 I cannot copy certain folders to any external drive. the operation can't be completed because an item with the name .ds_store exists. I have seen this problem in discussions for many years with no real solution. Does anyone have a resolution? Please help. This is very frustrating as I work in two locations and copy folders back in forth all the time.
Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test. -
Hi All,
I am facing the below error while installing Oracle RAC in Silent Mode.
SEVERE: There are no common subnets represented by network interfaces across all cluster nodes.
SEVERE: [FATAL] [INS-40925] One or more nodes have interfaces not configured with a subnet that is common across all cluster nodes.
CAUSE: Not all nodes have network interfaces that are configured on subnets that are common to all nodes in the cluster.
ACTION: Ensure all cluster nodes have a public interface defined with the same subnet accessible by all nodes in the cluster.
My /etc/hosts is given below.
127.0.0.1 localhost localhost.localdomain
#Public
192.168.1.101 rac1 rac1.localdomain
192.168.1.102 rac2 rac2.localdomain
#Private
192.168.2.101 rac1-priv rac1-priv.localdomain
192.168.2.102 rac2-priv rac2-priv.localdomain
#Virtual
192.168.1.103 rac1-vip rac1-vip.localdomain
192.168.1.104 rac2-vip rac2-vip.localdomain
#SCAN
192.168.1.105 rac-scan rac-scan.localdomain
Could you please help me to get rid of the error INS-40925....Any Idea...???Hi Ramesh,
Please find the result of ifconfig -a from both nodes RAC1 & RAC2.
ifconfig -a in RAC1
[oracle@rac1 Desktop]$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:27:17:7A:D5
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe17:7ad5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:102 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:25472 (24.8 KiB) TX bytes:3322 (3.2 KiB)
Interrupt:19 Base address:0xd020
eth1 Link encap:Ethernet HWaddr 08:00:27:C0:AC:DB
inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fec0:acdb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:240 (240.0 b) TX bytes:816 (816.0 b)
Interrupt:16 Base address:0xd240
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:56 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6394 (6.2 KiB) TX bytes:6394 (6.2 KiB)
virbr0 Link encap:Ethernet HWaddr 52:54:00:CC:BD:FB
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
virbr0-nic Link encap:Ethernet HWaddr 52:54:00:CC:BD:FB
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
ifconfig -a in RAC2
[oracle@rac2 Desktop]$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:27:C9:38:82
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fec9:3882/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:122 errors:0 dropped:0 overruns:0 frame:0
TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32617 (31.8 KiB) TX bytes:5157 (5.0 KiB)
Interrupt:19 Base address:0xd020
eth1 Link encap:Ethernet HWaddr 08:00:27:90:B5:A0
inet addr:192.168.2.102 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe90:b5a0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:240 (240.0 b) TX bytes:746 (746.0 b)
Interrupt:16 Base address:0xd240
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:56 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6390 (6.2 KiB) TX bytes:6390 (6.2 KiB)
virbr0 Link encap:Ethernet HWaddr 52:54:00:CC:BD:FB
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
virbr0-nic Link encap:Ethernet HWaddr 52:54:00:CC:BD:FB
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) -
If I buy Lion in the app store, can I ''reset'' my whole macbook (instead of doing this with the cd that comes with the macbook)?
With ''reset'' I mean, repair because it is from 2007 and so slow. So that all the data and programmes are gone and I can start over with Lion!?You have a choice. You can start by erasing the drive and reinstalling Snow Leopard prior to purchasing and downloading the Lion installer. Or you can purchase and download the installer, save the Lion installer, create a bootable Lion USB flash drive installer, boot from the Lion installer, erase the hard drive, and install Lion. I would suggest the second choice:
Make Your Own Lion Installer
1. After downloading Lion you must first save the Install Mac OS X Lion application. After Lion downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the Lion installer. Move the copy into your Downloads folder. Now you can click on the Install button or quit the installer. You must do this because the installer deletes itself automatically when it finishes installing Lion.
2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
Open Disk Utility in your Utilities folder.
After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
Click on the Erase button. The format process can take up to several hours depending upon the drive size.
3. Locate the saved Lion installer in your Downloads folder. CTRL- or RIGHT-click on the installer and select Show Package Contents from the contextual menu. Double-click on the Contents folder to open it. Double-click on the SharedSupport folder. In this folder you will see a disc image named InstallESD.dmg.
4. Plug in your freshly prepared USB flash drive. You are going to clone the InstallESD.dmg disc image to the flash drive as follows:
Open Disk Utility.
Select the USB flash drive from the left side list.
Click on the Restore tab in the DU main window.
Check the box labeled Erase destination.
Select the USB flash drive volume from the left side list and drag it to the Destination entry field.
Drag the InstallESD.dmg disc image file into the Source entry field.
Double-check you got it right, then click on the Restore button.
When the clone is completed you have a fully bootable Lion installer that you can use without having to re-download Lion.
To install Lion from scratch:
Install or Reinstall Lion from Scratch
If possible backup your files to an external drive or second internal drive.
Boot From Lion USB Flash Drive:
Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears. Select the icon for the USB flash drive then click on the arrow button below the icon.
Erase the hard drive:
Select Disk Utility from the main menu and click on the Continue button.
After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. SMART info will not be reported on external drives. Otherwise, click on the Erase tab in the DU main window.
Set the format type to Mac OS Extended (Journaled.) Click on the Erase button and wait until the process has completed.
Quit DU and return to the main menu.
Reinstall Lion: Select Reinstall Lion and click on the Install button. -
Can't add second child to StackPane repeatedly
Hi,
I have a StackPane array, which is filled up with two ImageViews. First ImageView is an unique picture, second ImageView is the same for every StackPane:
StackPane[] cards = new StackPane[gisView.length];
for (int i = 0; i < cards.length; i++) {
cards[i] = new StackPane();
System.out.println(cards.getChildren().add(gisView[i]));
System.out.println(cards[i].getChildren().add(topCard));
System.out.println(cards[i].isManaged());
System.out.println(cards[i].getChildren());
The problem is, that the second ImageView - topCard, is added only to first/last StackPane even I added it to every StackPane in cards.
- both add() methods return true, as well as isManaged() method.
- addAll(E...) doesn't work either even it returns true too.
- I checked the errorProperty for every Image and there's no problem with loading the images.
- both ImageViews do get added to StackPane inside the for loop, but there's only one ImageView in StackPane outside the for loop.
I hope it's some trivial issue that I just can't spot.
Edited by: user10869786 on May 24, 2012 6:10 AMA node can only be the child of one node at a time.
-
Can I add the same style sheet to multiple nodes in the same scene?
I know this sounds like a dumb question, so I'll give an explanation below. I've done this with FXML and Scene Builder and haven't noticed any negative effects yet. I'm mostly curious what happens internally when I add a style sheet to a node and that same style sheet has already been added via a parent node.
The reason I ask is because I use fx:include in many of my FXML files. For example, I'll have something like this:
MainPane.fxml - Uses shared.css and main-pane.css. Includes SubPane.fxml.
SubPane.fxml - Uses shared.css and sub-pane.css. Included in MainPane.fxml using fx:include.
I used to add shared.css to SubPane.fxml using Scene Builder's preview option, but the way this works has been changed in Scene Builder 2. See this thread for an explanation of the change. I also use TestFX and I'm convinced that I should be ensuring shared.css is applied to SubPane.fxml before running GUI tests.
The easiest way to accomplish what I want is to add shared.css to the root node of both MainPane.fxml and SubPane.fxml. However, I don't know if that's something I'm allowed to do. Is it?No. http://www.adobe.com/products/creativecloud/faq.html
Can I buy more than one membership to an individual offering of Creative Cloud?
No, Adobe has moved to identity-based licensing with a technology that will not support multiple same-product licenses, so you can buy only one membership per Adobe ID. If you need two Creative Cloud memberships, you will need to purchase each with a unique Adobe ID. You can also purchase a Creative Cloud for teams membership, which allows you to purchase and manage multiple seats under one account. -
I'm trying to add another child to my contact info and can't find the place to do it. Went to add field but there wasn't any choice for adding another person. This is my first Apple product and I must say I'm not very impressed.
Hey Memeyork,
Within the Contacts app, you would want to press the + sign at the top right to add a new contact. Here are some other ways you can add contacts to your iPhone:
iPhone - Add contacts
http://help.apple.com/iphone/7/#/iph14a87326
Have a good one,
Delgadoh -
How can I add a Time Capsule 3TB to a network with an older Time Capsule 2TB?
I have a 2010 Macbook Pro with 500 GB HD and a 2013 Macbook Pro with 1TB HD. I am using Mavericks and will migrate to OS X Yosemite when it becomes available. I tried backing both up with my older Time Capsule with 2 TB of space but it isn't enough. So, today I bought the new Time Capsule 3 TB to add on to my network. I want to use both TCs in order to have 5 TB for backup.
I have a Brother printer and my Comcast Cable Modem connected to the old Time Capsule. I also have an Apple TV with 1080p HD that uses the internet wirelessly through the old Time Capsule.
My first question is what should connect to what and in what order? Should the new TC connect directly to the old TC and if so, with what cable?
My 2nd question is: Can I move several 100 GB of old data that I rarely use onto the 3TB TC so that I could access the data from either computer whenever I need it, without having the data on either computer?
Thank you.This is a pretty easy setup.
Basically just plug the new TC WAN port into the old TC LAN port.
Run the airport utility on the computer and it should recognise that the new TC is plugged into another one.. and setup bridge mode and create a wireless network.. if not you can jump in and edit it at the end of the setup.
You could also swap things around with the new TC as the main router.. and the old one as the secondary.. but people are experiencing some issues with WAN connection to some cable modems.. so you need to be prepared if you have issues to go back to the original setup.
You will use an ethernet patch cable to connect them. I recommend if you have them in the same area place them at least a couple of meters apart.. so buy a 2-3M patch cable at least.. (8-9ft). Even better would be to install the new TC closer to the clients that will use it.. to improve wireless in dark corners of your house.. but all that can come later.
My 2nd question is: Can I move several 100 GB of old data that I rarely use onto the 3TB TC so that I could access the data from either computer whenever I need it, without having the data on either computer?
This is a lot harder question.. not in how to do it.. it is simple.. copy and paste files onto the new TC.. that is not the issue..
The problem is backup of the files that no longer exist on the computers. Ironically the TC is problematic for one major reason.. it cannot back itself up.. nor can Time Machine (TM) backup network drives. Even though TM uses the TC to store the backup it cannot actually work to backup the TC. The problems are not insurmountable.. you can use a third party backup.. eg CCC but it will be extremely slow. A better strategy if one of your computers is a desktop is to install an external drive and share it to the network. The data rate will be hugely better.. and TM can backup as per normal. -
How can i add a new user and change user'password with javamail?
how can i add a new user and change user'password from a mailserver with javamail?
email:[email protected]Well user creation and updation is a system property..U need to go through that part...as it depends on the system you are hosting pout your application...
if it is linux...u have to use some shell programming\
bye for now let me know if this guides you or if you need some more stuff.
bye -
Can't add a .ts file to Premiere Elements 12
Hi all,
it's me again. I tried to add a .ts file to Premiere Elements 12, but the program crashes every time. My system is a Macbook Pro OS X 10.9, 2.5 GHz, 8 GB RAM.
This is what Mediainfo says about the file:
I thought it's because of the file size. The original file is 8 GB (I recorded it with a sat-receiver). So I used the cutter to make it smaller but Premiere still crashes.
I tried another thing and used a video converter program, exported the same file also as a .ts file, and this one I can add to Prmiere without any problems. I just don't want to do this with every file because it takes the whole night to convert one single file :O
Any help is greatly appreciated, thank you in advance.
JessieATR,
thanks for answering. You're right, the .ts format is not listed as import format, but I read about it in a few forums as I searched for a program according to my requirements and that is not too expensive.
However, last night I tried a lot and I read a lot about the codecs because I assumed my problem has to do something with the audio layers. I created two test files, and I was able to import one file, but not the other. The audio layer was the only difference between these two files. So I installed the missing AC3- and A52-codec and it worked so far. Though I have to say that I don't really know if that was the issue as I found out it takes quite a time for Premiere to import these large .ts files. I always thought the program crashed, you know, a spinning mouse pointer, no reactions at all, the small window with the import progress stayed at 0 % the whole time, and when I right-clicked on the icon in the dock it said "Program is not responding".
I also found out that I can transcode the .ts files with VLC player (much faster than the other program I used before) and reduce the audio bitrate, and Premiere works much faster with the new transcoded file.
So I think I can live with this workaround
Thanks again,
Jessie -
How can i sort PDF's on IBook with the name that starting with numbers
i import a number of pdf's representing ameeting agenda as the files names (1xxx,1.1xxxx, 2.xxxx,10.xxxx) on ibook , however the files sorted on a diffrent way as file start with 10 on first . so how can i sor the files on the IBook with its name starting with numbers as1 &1.1 and so on.
You seem to want a numeric sort but are getting a character sort.
a number range would be 0,1,2,3, ... 9,10,11 ...
sorting like everything else with computers is an algorithm. Someone needs to define how it works. When you see a list of files, someone has defined how the list will be sorted. If you compare Windows file sorting to Mac files sorting you will find there are differences.
In the case of files sorting, the files are sorted on characters from left to right. In file sorting the sorting algorithm does not try to determine that files are numbers. All files beginning with a 1 will be sorted together becuase the file sorting althorithm doesn't look at the second character position before grouping all the 1's together.
For what it is worth, there are multple books written on sorting.
Robert -
I'm trying to use a class from inside another class, but I
cannot make the content of the second class display. My problem is
with the line: square2.addShape(150,150)
How do I add square2 to my display? Please let me know if
this is unclear and I will elaborate.
Thanks for looking at this!yeas I forgot about that, as I recall , Sprite can not
(directly) be used within hierarchy of DisplayList Objects ..
Lang Ref:
Note (Sprite): While the child argument to the method is
specified as of type DisplayObject, the argument must implement the
IUIComponent interface to be added as a child of a container. All
Flex components implement this interface.
also this :
http://userflex.wordpress.com/2008/06/12/sprite-uicomponent/
Maybe you are looking for
-
Connection issue with iPod Shuffle 4th Gen.
Hello, I have problem with my iPod Shuffle 4th gen. One day i tried as always to turn it on and listen music but i heard only short "info" sound and saw short green diode impulse and nothing else. My computer (windows 7) also can't find it, after plu
-
[Solved] Ctrl + Alt + F[1-6] -- no signal on display
02/04/13 I made a full system update. When turned off my PC, I noticed that screen is turned off before the system is actually halted. Well, this didn't made me suspicious. However, today I decided to make a full update with new KDE. I thought that i
-
Itunes will not open at all, I did uninstall and re install also did create new user account and fixed hosts file according t apple instructions, reinstalled quicktime, restored system to a week earlier when it worked, disabled firewall almost did ev
-
Having trouble with my print operating system. It will not hold presets. If I upgrade to Lion, will Lion replace Leopard's print operating system?
-
Does Mac equivalent to Adobe Audition/CoolEdit Pro exist?
Audacity lacks the feature set though the price point makes it attractive. The versions of Bias Peak I've used are slow & cumbersome and don't have multitrack editing capabilities. Bias Deck has multitrack support but still requires you to have Bias