XML read attributes -
Hey guys,
I'm having a hard time finding examples of how to read in xml attributes.
Here's what I have in the units.xml:
<?xml version="1.0"?>
<units>
<persiancamp unit="xerxes" number="1" owner="persian" />
</units>
Then in my application I do this:
VB Code:
Dim xmlUnits As New XmlDocument
Dim xUnitNode As XmlNode
Dim xUnitNodeList As XmlNodeList
xmlUnits.Load(Application.StartupPath & "\units.xml")
Dim i As Integer = 0
xUnitNodeList = xmlUnits.GetElementsByTagName("persiancamp")
For Each xUnitNode In xUnitNodeList
'get the unit, number, and owner ???
Next
Next
Also, is this a good way of doing it?
I was doing it like this before:
<persiancamp>
<unit>xerxes</unit>
<number>1</number>
<owner>persian</owner>
</persiancamp>
and was able to use the getinnertext function. However, I read that it is much slower (I usually have about 500 things read in).
Thanks,
Mike
Reading Read-Only Attributes -
Hi,
I want my program to read all files and sub directories in a user-typed location on there computer and report on how many files in that directory and all sub directories and files are read-only, and then attempt to remove there read-only attributes and report on how successful
API call to change file attributes -
I am trying to find an API call that will allow me to change the attributes of a group of files from Read-only so they are no longer read-only and not having much luck. Does anyone know of one?
BackUp Files & Change the Attributes flag -
After I copy files to the server, I am planning to change the 'Attributes' flag
from vbArchive to vbNormal.
Is there anything I need to be aware of?
Besides other file types: read only, compressed, ...
Set f = fso.GetFile(ThisFolder.Path & "\" & ThisFile.Name)
File attributes -
How do you get & set the a file's attributes? Namely I'm interested in the read-only property, for I've been trying to change the file's time stamp but it failed as the file was read-only and I previously had to change this manually.
Attributes and Reflection -
Attributes and Reflection -
Can someone please help me understand why these two things are important in C# programming? Why would I want to make an attribute for my application? Also, why would I want to use reflection to see what attributes are in other applications?
The only us
Advanced View of File System Rights -
Hallo,
I am using the adssecurity.dll to view the Folder Rights and Permissions on an NTFS.
how do i get the Rights in th "Advanced view of the File System Rights". Such as
Traverse folder/Execute File
List Folder/Fead Data
Read Attributes
Read Extended Attributes
Alter Attributes -
Is there any way to alter NTFS attributes such as compressed and encrypted, as well as indexed that aren't in FAT, and can't be set with SetAttr?
Also, related, is there any way to detect the file system of drives, and their read/write status?
File attributes *RESOLVED* -
how can you change the file attributes from something like read-only or hidden, ect...to something else?
[2005] Custom Button / Button Attributes -
Hey.
I'm curious if it's possible some one could point me in the direction of some pre-written custom button(s) (particularly with more attribute fields for info), or let me know step by step how to add some custom attributes for the default button?
I've read a few items on adding
[2.0] what are attributes -
I am aware of interfaces, methods, classes and properties. what are attributes?
any sites that would give good introduction about attributes in c#?
thanks
nath
Getting complete file attributes in VB6 -
Hi,
I am writing a program to get file attributes loaded into Access database for all files in a particular directory. These attributes include, file size, name, date-saved, created and all other available attributes. I think file attributes can vary with file types. For example, fo
file attributes (ie. hidden, archive, read only) -
is there a command or procedure that can change file attributes
and on file writting can you set the attribute's (ie. when you create a file in VB runtime)
File change event -
Hi,
does anyone know if it is possible to do an action when a file residing on disk changes, i.e. it has content written to it?
I have a file that resides on a web server. Details are written to this file periodically. I require to read the file contents when they change. At th
Delete a hidden file -
I am creating a program that needs to be able to delete files with the system, hidden, or read-only attributes.
Any ideas?
Maybe some code to change the attributes then use the Kill command?
Any help, thanx in advance.
-da404LewZer
Copying files from CD -
Whats the best method to copy each file from a CD and change the file attributes from READ ONLY to Normal. I have to be able to copy a file, then change attributes, then copy next file, change attributes and so on ......
Thanks
Changing attributes of a file -
How can i change the attributes of a file in my vbprogram?
for example
the read-ony attribute
the hidden attribute
Custom Attributes -
Hi everybody,
Can anybody explain me about Custom Attributes and how are they implemented?. I mean what is the significance of using separate class for Attributes?
Thanks in advance,
abhid
What are Attributes in VB.Net -
Hello Friends,
Can someone guide me to a good tutorial on Attributes in VB.Net?
At present I dont know anything about attributes. I am only aware that they are some sort of keywords.
Regards,
Sid.
[2.0] Need help! XML - How to -
Hello!
I am in serious need of some teaching here, and I would appreciate any help at all concerning this matter.
I have been trying for about 6 months now, on and off, to try to learn how to read and write XML with C#. I have read over 7 books trying to explain how it all works,
UniCode Question -
I have a question about the VBunicode. I read the MSDN help and understood some of it.
If I am making a text editor in a textbox and I want to save the attributes of that text ie., bold, italics, and size. I would use the vbunicode to retain these attributes?
FILE_ATTRIBUTE(s) -
Work out attributes
I need to work out the attributes for a file.
I use the GetFileAttributes API call.
How do I work out which attributes are set,
from the returned Long variable.
I know I can use If's for every combination but there must be
an easier (lazier) way.
Thanks
Creating SQL Server DSN With Username & Password -
Hello,
I'm trying to programmatically create a DSN server using an example from the msdn site.
Code:
Public Sub CreateSystemDSN(ByVal strDSN As String, ByVal strDatabase As String)
Dim ReturnValue As Integer
Dim Driver As String
Dim Attributes As
How to create an DSN for MS Access 2007 -
How to create an DSN for MS Access 2007 ?
--------------------------------------------------------------------------------
Hi all,
How to create a DSN programmatically for MS Access 2007 ?
i have tried the following code,but its not working.
-----------------------------
M$SQL: Database design: Product Attributes -
I am creating a database of products ....
Each product has the following:
ProductID, ProductName, ProductManufacturer, InventoryCount, PricePerUnit
these products are computer parts such as processors, ram, motherboards, even entire computers... how would you suggest storing
Accessing a classes attributes -
I have a class with attributes I want other classes to access(clsAll) through property methods. I have 3 other classes(forms) that I want to access the attributes that have been instantiated and given values in clsAll by the first form class. The problem is that the second form class
How to read file information -
Hi!
Im working in C/C++ in Visual Studio 6.
I need to be able to read all file metadata information from a file, and store it in a string. As the attributes differ for each file extension (for example u have the "date taken" and "resolution" properties I need
File and Folder Attributes -
Hello,
I am trying to change the file/folder attribute...
Is there any other attributes(read only, system,hidden,archive,alias...)
I want know whether there is any attribute like no permission, cannot access, access denied?
thank u
vyas
window attributes -
Hello,
Im trying to get the attributes of a window (form) like
WS_SYSMENU and WS_POPUP, just the number values would be fine.
Anyone know of a way to do this, maybe API, to get these attributes (form).
Thanks
Form attributes between executions -
I'm trying to save the attributes for a form so that if it is resized the attributes can be reloaded at the next execution of the program and the form will retain it's size and screen position.
I'm working on a program, but I must not be putting the call to Save in the right place.
[02/03] meanings of these Attributes -
hello,
i asked a question few days back in C# on the same topic, but could not get any answer (read 'answer' and not 'reply' ).
Link here
could someone tell me what do HidebySig, specialname, rtspecialname attributes signify.
i got that .cctor is for static constructor, b
How to import PageSetup attributes from Excel -
Esteemed Forum Participants and Lurkers:
I can open and manipulate data in an Excel Spreadsheet (Excel 97-SR2), but is there any way to read/import the PageSetup attributes? I especially need to see the "PageSetup.CenterHeader" value.
Thank you for any and all comments
Using More that one Textbox Attributes (javascript) -
hi, am trying 2 attach 2 attributes for my textbox, the 1st for onkeypress event and the next for onkeyup ie
txtbox1.Attributes.Add("onkeypress", "return passme(event);")
txtbox1.Attributes.Add("onkeyup", "return somtinElse(event);")
but onl
Un-Read-Only a Folder -
hey,
How can i change the attributes of a folder so that it is no longer read-only ?
SetAttr doesnt appear to work when using vbNormal
Problem using GetAttr -
This is rather confusing to me, and I would like someone to shed some light on the subject.
I am using GetAttr to get the attributes of each item in a listview. For some reason, it doesn't see the Program Files directory as a directory, but as a 0-byte file instead.
I looked at
ActiveX - on a web-page - access attributes -
I've created an ActiveX-object (UserControl) to be used on a web page (about like the snippet below)
The problem I have is, I want the routine to read a parameter passed to it .
In Java-world applets access their attributes with the getParameter()-method.
How do ActiveX - used on
Writing file attributes -
I'm doing a task where I need to send a customer a back up of their images. There are over 700,000 of them and I want to give them a way to search them. I was thinking of using various bit of control information like claim number, employee ID, and name by putting them in the file att
Find Attributes of files in a drive -
As with my detect new drive post, i have yet another question to add, since I want to keep moving on my project, can anyone help me with the following:
I have the D: drive which has 10 folders with files in some, I want to find files which have attributes:
-File Type = .mp3, .wma,
File size/attributes ... how -
I am making a program that needs to have info of a file.
Say c:\autoexec.bat
How can i get its size and attributes and creation, mod date, etc ... ?
I know i can use this:
dim size
open "c:\autoexec.bat" for input as #1: size=lof(1): close #1
but this will give me a
Help on tricks -
how to transfer a row of attributes from a msflexgrid
when a particular row on the msflexgrid is selected or highligted?
for example ,
in the msflexgrid has 2 attributes namely
name and telephoneNo
so when i highlight a particular record in the msflexgrid table,
it will
Creating new folders with attributes -
Hi, I would like to find out...how do i create a folder and set its attributes? like enable sharing, password for it etc. Thanks.