HI,
I'm trying to solve the problem of hard coding. Using XML to solve it,but Path problems occurred when used after successful deployment
I am sorry I can't work out what you are asking in your question.
What is "the problem of hard coding"? The usual mention of hard-coding being a problem is that you want to make your code more flexible so it can deal with variable inputs instead of a hard-coded list. The "problem" there is fixed by, well, not using hard coding.
So, without a definition of what the problem is, the rest of your question makes no sense. Using XML is not a fix for not doing hard-coding, you've not explained "path problems" and "successful deployment" is completely out of context.
Could you explain the problem you are having in detail please?
I need to take the key out of my code and put it in an XML file, and I put that XML file in RESOURCE, how do I write the path to access that file in my code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, so you're getting rid of hard-coding by reading data from xml instead of putting it in the code. That's a good approach to de-hard-coding stuff.
But it does leave us a bit stuck. We're here to talk about Atlassian stuff, and there's nothing in your question about how it relates to Atlassian stuff, so we may be the wrong audience. Also, you haven't said what you're trying to achieve, or the technologies you're using.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.